Audit the pid being requested in wait4().

Obtained from: TrustedBSD Project
Approved by: rwatson (mentor)
This commit is contained in:
wsalamon 2006-02-06 00:19:09 +00:00
parent 961deee05e
commit 88c7ad2392

View File

@ -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);