1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-23 11:18:54 +00:00

When generating BSM tokens for mkfifo(), include mode argument.

Submitted by:	wsalamon
Obtained from:	TrustedBSD Project
This commit is contained in:
Robert Watson 2006-06-05 16:14:49 +00:00
parent 5619113c96
commit 7365463843
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=159278

View File

@ -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: