Skip to content

Commit

Permalink
Merge pull request #69 from gbergling/master
Browse files Browse the repository at this point in the history
Update OpenBSM constants with recent additions by Apple
  • Loading branch information
csjayp committed Oct 31, 2020
2 parents 1360ec6 + e078a6d commit 54a0c07
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions sys/bsm/audit_errno.h
Expand Up @@ -161,6 +161,7 @@
#define BSM_ERRNO_EALREADY 149
#define BSM_ERRNO_EINPROGRESS 150
#define BSM_ERRNO_ESTALE 151
#define BSM_ERRNO_EQFULL 152

/*
* OpenBSM constants for error numbers not defined in Solaris. In the event
Expand Down
4 changes: 4 additions & 0 deletions sys/bsm/audit_fcntl.h
Expand Up @@ -111,6 +111,10 @@
#define BSM_F_CHECK_OPENEVT 358 /* Darwin-specific. */
#define BSM_F_ADDSIGS 359 /* Darwin-specific. */
#define BSM_F_MARKDEPENDENCY 360 /* Darwin-specific. */
#define BSM_F_BARRIERFSYNC 361 /* Darwin-specific. */
#define BSM_F_PUNCHHOLE 362 /* Darwin-specific. */
#define BSM_F_TRIM_ACTIVE_FILE 363 /* Darwin-specific. */
#define BSM_F_SPECULATIVE_READ 364 /* Darwin-specific. */

/*
* Darwin file system specific (400-499).
Expand Down
12 changes: 12 additions & 0 deletions sys/bsm/audit_kevents.h
Expand Up @@ -445,6 +445,7 @@
#define AUE_PIDFORTASK 43049 /* Darwin-specific. */
#define AUE_SYSCTL_NONADMIN 43050
#define AUE_COPYFILE 43051 /* Darwin-specific. */
#define AUE_DBGPORTFORPID 43052 /* Darwin-specific. */

/*
* Events added to OpenBSM for FreeBSD and Linux; may also be used by Darwin
Expand Down Expand Up @@ -656,6 +657,11 @@
#define AUE_REALPATHAT 43264 /* FreeBSD-specific. */
#define AUE_CLOSERANGE 43265 /* FreeBSD-specific. */

#define AUE_SESSION_START 44901 /* Darwin. */
#define AUE_SESSION_UPDATE 44902 /* Darwin. */
#define AUE_SESSION_END 44903 /* Darwin. */
#define AUE_SESSION_CLOSE 44904 /* Darwin. */

/*
* Darwin BSM uses a number of AUE_O_* definitions, which are aliased to the
* normal Solaris BSM identifiers. _O_ refers to it being an old, or compat
Expand Down Expand Up @@ -840,5 +846,11 @@
#define AUE_WATCHEVENT AUE_NULL
#define AUE_WORKQOPEN AUE_NULL
#define AUE_WORKQOPS AUE_NULL
#define AUE_WORKLOOPCTL AUE_NULL
#define AUE_PERSONA AUE_NULL
#define AUE_USRCTL AUE_NULL
#define AUE_NEXUS AUE_NULL
#define AUE_CHANNEL AUE_NULL
#define AUE_NET AUE_NULL

#endif /* !_BSM_AUDIT_KEVENTS_H_ */
5 changes: 5 additions & 0 deletions sys/bsm/audit_record.h
Expand Up @@ -132,6 +132,11 @@
#define AUT_ARG_UUID 0x84 /* UUID of argument object */
#define AUT_RETURN_UUID 0x85 /* UUID of returned object */

/* Apple specific tokens */
#define AUT_IDENTITY 0xed
#define AUT_KRB5_PRINCIPAL 0xee
#define AUT_CERT_HASH 0xef

/* print values for the arbitrary token */
#define AUP_BINARY 0
#define AUP_OCTAL 1
Expand Down

0 comments on commit 54a0c07

Please sign in to comment.