Audit the pid being requested in wait4().
Obtained from: TrustedBSD Project Approved by: rwatson (mentor)
This commit is contained in:
parent
961deee05e
commit
88c7ad2392
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user