sys: add AUE_PDRFORK
Reviewed by: asomers, markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D54592
This commit is contained in:
@@ -664,6 +664,7 @@
|
||||
#define AUE_TIMERFD 43270 /* FreeBSD/Linux. */
|
||||
#define AUE_SETCRED 43271 /* FreeBSD-specific. */
|
||||
#define AUE_INOTIFY 43272 /* FreeBSD/Linux. */
|
||||
#define AUE_PDRFORK 43273 /* FreeBSD-specific. */
|
||||
|
||||
/*
|
||||
* Darwin BSM uses a number of AUE_O_* definitions, which are aliased to the
|
||||
|
||||
@@ -1365,6 +1365,24 @@ kaudit_to_bsm(struct kaudit_record *kar, struct au_record **pau)
|
||||
kau_write(rec, tok);
|
||||
}
|
||||
break;
|
||||
case AUE_PDRFORK:
|
||||
if (ARG_IS_VALID(kar, ARG_PID)) {
|
||||
tok = au_to_arg32(0, "child PID", ar->ar_arg_pid);
|
||||
kau_write(rec, tok);
|
||||
}
|
||||
if (ARG_IS_VALID(kar, ARG_CMD)) {
|
||||
tok = au_to_arg32(2, "fflags", ar->ar_arg_cmd);
|
||||
kau_write(rec, tok);
|
||||
}
|
||||
if (ARG_IS_VALID(kar, ARG_FFLAGS)) {
|
||||
tok = au_to_arg32(2, "flags", ar->ar_arg_fflags);
|
||||
kau_write(rec, tok);
|
||||
}
|
||||
if (ARG_IS_VALID(kar, ARG_FD)) {
|
||||
tok = au_to_arg32(1, "fd", ar->ar_arg_fd);
|
||||
kau_write(rec, tok);
|
||||
}
|
||||
break;
|
||||
case AUE_PDGETPID:
|
||||
if (ARG_IS_VALID(kar, ARG_FD)) {
|
||||
tok = au_to_arg32(1, "fd", ar->ar_arg_fd);
|
||||
|
||||
Reference in New Issue
Block a user