Extend comment describing path canonicalisation in audit.

Sponsored by:	DARPA, AFRL
Obtained from:	TrustedBSD Project
MFC after:	3 days
This commit is contained in:
rwatson 2017-03-27 08:29:17 +00:00
parent 1a8fbf8eae
commit 4315cc14ea

View File

@ -708,7 +708,8 @@ audit_arg_file(struct proc *p, struct file *fp)
* Store a path as given by the user process for auditing into the audit * 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 * 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 * 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 static void
audit_arg_upath(struct thread *td, int dirfd, char *upath, char **pathp) audit_arg_upath(struct thread *td, int dirfd, char *upath, char **pathp)