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

From
Paul Moore <paul@paul-moore.com>
Date
2021-12-06 02:45:57
Also in
lkml, selinux
Reply to
Casey Schaufler, 2021-11-24
On Tue, Nov 23, 2021 at 9:12 PM Casey Schaufler [off-list ref] 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@schaufler-ca.com>
---
 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
Thread (40 messages) 40 messages, 3 authors, last reply 2021-12-06
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help