Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Jul 2011 12:50:21 +0000 (UTC)
From:      Jonathan Anderson <jonathan@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r224268 - head/sys/kern
Message-ID:  <201107221250.p6MCoL4d017773@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



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