diff options
Diffstat (limited to 'sys/kern/kern_sig.c')
| -rw-r--r-- | sys/kern/kern_sig.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index de44a720d89a..41bb6ff9bc13 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -79,6 +79,8 @@ __FBSDID("$FreeBSD$"); #include <posix4/posix4.h> #include <machine/cpu.h> +#include <security/audit/audit.h> + #if defined (__alpha__) && !defined(COMPAT_43) #error "You *really* need COMPAT_43 on the alpha for longjmp(3)" #endif @@ -1709,6 +1711,7 @@ kill(td, uap) register struct proc *p; int error; + AUDIT_ARG(signum, uap->signum); if ((u_int)uap->signum > _SIG_MAXSIG) return (EINVAL); @@ -1718,12 +1721,14 @@ kill(td, uap) if ((p = zpfind(uap->pid)) == NULL) return (ESRCH); } + AUDIT_ARG(process, p); error = p_cansignal(td, p, uap->signum); if (error == 0 && uap->signum) psignal(p, uap->signum); PROC_UNLOCK(p); return (error); } + AUDIT_ARG(pid, uap->pid); switch (uap->pid) { case -1: /* broadcast signal */ return (killpg1(td, uap->signum, 0, 1)); @@ -1752,6 +1757,8 @@ okillpg(td, uap) register struct okillpg_args *uap; { + AUDIT_ARG(signum, uap->signum); + AUDIT_ARG(pid, uap->pgid); if ((u_int)uap->signum > _SIG_MAXSIG) return (EINVAL); |
