diff options
author | rwatson <rwatson@FreeBSD.org> | 2009-07-01 12:36:10 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2009-07-01 12:36:10 +0000 |
commit | dff449105c1ed908d176ecc7562c2045b9205732 (patch) | |
tree | 342a43847cdd297c6119e27a9ca253ff0433a571 | |
parent | 7efd755635cf3b7566887648a492de87f729bddc (diff) | |
download | FreeBSD-src-dff449105c1ed908d176ecc7562c2045b9205732.zip FreeBSD-src-dff449105c1ed908d176ecc7562c2045b9205732.tar.gz |
udit the 'options' argument to wait4(2).
Approved by: re (kib)
MFC after: 3 days
-rw-r--r-- | sys/kern/kern_exit.c | 1 | ||||
-rw-r--r-- | sys/security/audit/audit_bsm.c | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c index ae060da..450aab6 100644 --- a/sys/kern/kern_exit.c +++ b/sys/kern/kern_exit.c @@ -804,6 +804,7 @@ kern_wait(struct thread *td, pid_t pid, int *status, int options, int error, nfound; AUDIT_ARG_PID(pid); + AUDIT_ARG_VALUE(options); q = td->td_proc; if (pid == 0) { diff --git a/sys/security/audit/audit_bsm.c b/sys/security/audit/audit_bsm.c index 80fbd74..ee92e16 100644 --- a/sys/security/audit/audit_bsm.c +++ b/sys/security/audit/audit_bsm.c @@ -1498,6 +1498,10 @@ kaudit_to_bsm(struct kaudit_record *kar, struct au_record **pau) tok = au_to_arg32(0, "pid", ar->ar_arg_pid); kau_write(rec, tok); } + if (ARG_IS_VALID(kar, ARG_VALUE)) { + tok = au_to_arg32(0, "options", ar->ar_arg_value); + kau_write(rec, tok); + } break; case AUE_NULL: |