]> www.infradead.org Git - users/dwmw2/linux.git/commit
lsm: add lsmprop_to_secctx hook
authorCasey Schaufler <casey@schaufler-ca.com>
Wed, 9 Oct 2024 17:32:11 +0000 (10:32 -0700)
committerPaul Moore <paul@paul-moore.com>
Fri, 11 Oct 2024 18:34:12 +0000 (14:34 -0400)
commit6f2f724f0e116d9ea960ff3dd645add12e60e176
tree8f9ed2193bbc3eabb023168cc07cc4ba74db7a78
parent870b7fdc660b38c4e1bd8bf48e62aa352ddf8f42
lsm: add lsmprop_to_secctx hook

Add a new hook security_lsmprop_to_secctx() and its LSM specific
implementations. The LSM specific code will use the lsm_prop element
allocated for that module. This allows for the possibility that more
than one module may be called upon to translate a secid to a string,
as can occur in the audit code.

Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
[PM: subject line tweak]
Signed-off-by: Paul Moore <paul@paul-moore.com>
include/linux/lsm_hook_defs.h
include/linux/security.h
security/apparmor/include/secid.h
security/apparmor/lsm.c
security/apparmor/secid.c
security/security.c
security/selinux/hooks.c
security/selinux/include/audit.h
security/smack/smack_lsm.c