aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorCasey Schaufler <[email protected]>2024-10-09 17:32:12 +0000
committerPaul Moore <[email protected]>2024-10-11 18:34:13 +0000
commit7183abccd8ac2c486363e267b5d84032818eb725 (patch)
tree1b68bbb04a93a257085dda538edfcbfaf435ac6f /security/selinux/hooks.c
parentlsm: add lsmprop_to_secctx hook (diff)
downloadkernel-7183abccd8ac2c486363e267b5d84032818eb725.tar.gz
kernel-7183abccd8ac2c486363e267b5d84032818eb725.zip
audit: maintain an lsm_prop in audit_context
Replace the secid value stored in struct audit_context with a struct lsm_prop. Change the code that uses this value to accommodate the change. security_audit_rule_match() expects a lsm_prop, so existing scaffolding can be removed. A call to security_secid_to_secctx() is changed to security_lsmprop_to_secctx(). The call to security_ipc_getsecid() is scaffolded. A new function lsmprop_is_set() is introduced to identify whether an lsm_prop contains a non-zero value. Signed-off-by: Casey Schaufler <[email protected]> [PM: subject line tweak, fix lsmprop_is_set() typo] Signed-off-by: Paul Moore <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions