From 7a270867e75c82d5fc891b560eaa04495c5ff348 Mon Sep 17 00:00:00 2001 From: Jonathan Anderson Date: Fri, 22 Jul 2011 12:50:21 +0000 Subject: [PATCH] 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 --- sys/kern/sys_capability.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/kern/sys_capability.c b/sys/kern/sys_capability.c index 04f98d8290c..6ca960269d6 100644 --- a/sys/kern/sys_capability.c +++ b/sys/kern/sys_capability.c @@ -224,9 +224,7 @@ cap_new(struct thread *td, struct cap_new_args *uap) 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);