diff options
author | rwatson <rwatson@FreeBSD.org> | 2006-06-05 16:14:49 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2006-06-05 16:14:49 +0000 |
commit | 1063b3ddc4fa03e90276fa4a6c906ced0060b0ee (patch) | |
tree | b5262e7e4fe285417996a31a2fb94102b2290c3a /sys/security/audit | |
parent | bc4af4941556924c703f5b5fcbda8a3bb3ec7281 (diff) | |
download | FreeBSD-src-1063b3ddc4fa03e90276fa4a6c906ced0060b0ee.zip FreeBSD-src-1063b3ddc4fa03e90276fa4a6c906ced0060b0ee.tar.gz |
When generating BSM tokens for mkfifo(), include mode argument.
Submitted by: wsalamon
Obtained from: TrustedBSD Project
Diffstat (limited to 'sys/security/audit')
-rw-r--r-- | sys/security/audit/audit_bsm.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/security/audit/audit_bsm.c b/sys/security/audit/audit_bsm.c index b0854e7..de20c60 100644 --- a/sys/security/audit/audit_bsm.c +++ b/sys/security/audit/audit_bsm.c @@ -538,6 +538,12 @@ kaudit_to_bsm(struct kaudit_record *kar, struct au_record **pau) */ break; + case AUE_MKFIFO: + if (ARG_IS_VALID(kar, ARG_MODE)) { + tok = au_to_arg32(2, "mode", ar->ar_arg_mode); + kau_write(rec, tok); + } + /* fall through */ case AUE_ACCESS: case AUE_CHDIR: case AUE_CHROOT: @@ -546,7 +552,6 @@ kaudit_to_bsm(struct kaudit_record *kar, struct au_record **pau) case AUE_GETATTRLIST: case AUE_NFS_GETFH: case AUE_LSTAT: - case AUE_MKFIFO: case AUE_PATHCONF: case AUE_READLINK: case AUE_REVOKE: |