diff options
author | wsalamon <wsalamon@FreeBSD.org> | 2006-02-06 00:19:09 +0000 |
---|---|---|
committer | wsalamon <wsalamon@FreeBSD.org> | 2006-02-06 00:19:09 +0000 |
commit | 88c7ad2392d24cb7c203deabadb587dd6abadd16 (patch) | |
tree | fc083d696146589eb7213b87a20273d277516d38 /sys/kern/kern_exit.c | |
parent | 961deee05e783d72e278efcc01c0cbf6231d5d30 (diff) | |
download | FreeBSD-src-88c7ad2392d24cb7c203deabadb587dd6abadd16.zip FreeBSD-src-88c7ad2392d24cb7c203deabadb587dd6abadd16.tar.gz |
Audit the pid being requested in wait4().
Obtained from: TrustedBSD Project
Approved by: rwatson (mentor)
Diffstat (limited to 'sys/kern/kern_exit.c')
-rw-r--r-- | sys/kern/kern_exit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c index 3ff3409..8feb178 100644 --- a/sys/kern/kern_exit.c +++ b/sys/kern/kern_exit.c @@ -701,6 +701,8 @@ kern_wait(struct thread *td, pid_t pid, int *status, int options, struct proc *p, *q, *t; int error, nfound; + AUDIT_ARG(pid, pid); + q = td->td_proc; if (pid == 0) { PROC_LOCK(q); |