Audit the pid being requested in wait4().
Obtained from: TrustedBSD Project Approved by: rwatson (mentor)
This commit is contained in:
parent
67e4c7efd5
commit
de3007e8f3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=155368
@ -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