Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Mar 2017 08:29:17 +0000 (UTC)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r316015 - head/sys/security/audit
Message-ID:  <201703270829.v2R8THOH068421@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rwatson
Date: Mon Mar 27 08:29:17 2017
New Revision: 316015
URL: https://svnweb.freebsd.org/changeset/base/316015

Log:
  Extend comment describing path canonicalisation in audit.
  
  Sponsored by:	DARPA, AFRL
  Obtained from:	TrustedBSD Project
  MFC after:	3 days

Modified:
  head/sys/security/audit/audit_arg.c

Modified: head/sys/security/audit/audit_arg.c
==============================================================================
--- head/sys/security/audit/audit_arg.c	Mon Mar 27 08:29:02 2017	(r316014)
+++ head/sys/security/audit/audit_arg.c	Mon Mar 27 08:29:17 2017	(r316015)
@@ -708,7 +708,8 @@ audit_arg_file(struct proc *p, struct fi
  * Store a path as given by the user process for auditing into the audit
  * record stored on the user thread.  This function will allocate the memory
  * to store the path info if not already available.  This memory will be
- * freed when the audit record is freed.
+ * freed when the audit record is freed.  The path is canonlicalised with
+ * respect to the thread and directory descriptor passed.
  */
 static void
 audit_arg_upath(struct thread *td, int dirfd, char *upath, char **pathp)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703270829.v2R8THOH068421>