svn commit: r224268 - head/sys/kern
Jonathan Anderson
jonathan at FreeBSD.org
Fri Jul 22 12:50:22 UTC 2011
Author: jonathan
Date: Fri Jul 22 12:50:21 2011
New Revision: 224268
URL: http://svn.freebsd.org/changeset/base/224268
Log:
Turn on AUDIT_ARG_RIGHTS() for cap_new(2).
Now that the code is in place to audit capability method rights, start
using it to audit the 'rights' argument to cap_new(2).
Approved by: re (kib), mentor (rwatson)
Sponsored by: Google Inc
Modified:
head/sys/kern/sys_capability.c
Modified: head/sys/kern/sys_capability.c
==============================================================================
--- head/sys/kern/sys_capability.c Fri Jul 22 09:39:49 2011 (r224267)
+++ head/sys/kern/sys_capability.c Fri Jul 22 12:50:21 2011 (r224268)
@@ -224,9 +224,7 @@ cap_new(struct thread *td, struct cap_ne
cap_rights_t rights = uap->rights;
AUDIT_ARG_FD(fd);
-#ifdef notyet /* capability auditing will follow in a few commits */
AUDIT_ARG_RIGHTS(rights);
-#endif
error = fget(td, fd, &fp);
if (error)
return (error);
More information about the svn-src-head
mailing list