[PATCH v6 4/4] Audit: Add record for multiple object contexts
Paul Moore
paul at paul-moore.com
Sat Aug 30 14:15:17 UTC 2025
On Aug 16, 2025 Casey Schaufler <casey at schaufler-ca.com> wrote:
>
> Create a new audit record AUDIT_MAC_OBJ_CONTEXTS.
> An example of the MAC_OBJ_CONTEXTS record is:
>
> type=MAC_OBJ_CONTEXTS
> msg=audit(1601152467.009:1050):
> obj_selinux=unconfined_u:object_r:user_home_t:s0
>
> When an audit event includes a AUDIT_MAC_OBJ_CONTEXTS record
> the "obj=" field in other records in the event will be "obj=?".
> An AUDIT_MAC_OBJ_CONTEXTS record is supplied when the system has
> multiple security modules that may make access decisions based
> on an object security context.
>
> Signed-off-by: Casey Schaufler <casey at schaufler-ca.com>
> ---
> include/linux/audit.h | 7 +++++
> include/uapi/linux/audit.h | 1 +
> kernel/audit.c | 58 +++++++++++++++++++++++++++++++++++++-
> kernel/auditsc.c | 38 +++++--------------------
> security/selinux/hooks.c | 4 ++-
> security/smack/smack_lsm.c | 4 ++-
> 6 files changed, 78 insertions(+), 34 deletions(-)
Merged into audit/dev, thanks.
--
paul-moore.com
More information about the Linux-security-module-archive
mailing list