Re: [PATCH v30 26/28] Audit: Add record for multiple object security contexts

From: Paul Moore
Date: Sun Dec 05 2021 - 21:45:57 EST


On Tue, Nov 23, 2021 at 9:12 PM Casey Schaufler <casey@xxxxxxxxxxxxxxxx> wrote:
>
> Create a new audit record AUDIT_MAC_OBJ_CONTEXTS.
> An example of the MAC_OBJ_CONTEXTS (1421) record is:
>
> type=UNKNOWN[1421]
> 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=?".
> A 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@xxxxxxxxxxxxxxxx>
> ---
> include/linux/audit.h | 5 ++++
> include/uapi/linux/audit.h | 1 +
> kernel/audit.c | 61 ++++++++++++++++++++++++++++++++++++++
> kernel/auditsc.c | 37 ++++-------------------
> 4 files changed, 72 insertions(+), 32 deletions(-)

My comments on 24/28 and 25/28 should also apply to this patch.

--
paul moore
www.paul-moore.com