Skip to content

Commit

Permalink
Extend comment describing path canonicalisation in audit.
Browse files Browse the repository at this point in the history
Sponsored by:	DARPA, AFRL
Obtained from:	TrustedBSD Project
MFC after:	3 days
  • Loading branch information
rwatson committed Mar 27, 2017
1 parent af48c20 commit d422682
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sys/security/audit/audit_arg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
* 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)
Expand Down

0 comments on commit d422682

Please sign in to comment.