]> www.infradead.org Git - users/dwmw2/linux.git/commit
lsm: use lsm_prop in security_inode_getsecid
authorCasey Schaufler <casey@schaufler-ca.com>
Wed, 9 Oct 2024 17:32:16 +0000 (10:32 -0700)
committerPaul Moore <paul@paul-moore.com>
Fri, 11 Oct 2024 18:34:14 +0000 (14:34 -0400)
commit07f9d2c1132c9b838538b606dfcdab2506cd2ae4
treeae7fb13fbbd2f624cd904b9b2fc7bd5579d55cf4
parent37f670aacd481128ad9a940ac2d3372aecd92824
lsm: use lsm_prop in security_inode_getsecid

Change the security_inode_getsecid() interface to fill in a
lsm_prop structure instead of a u32 secid. This allows for its
callers to gather data from all registered LSMs. Data is provided
for IMA and audit. Change the name to security_inode_getlsmprop().

Cc: linux-integrity@vger.kernel.org
Cc: selinux@vger.kernel.org
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
[PM: subj line tweak]
Signed-off-by: Paul Moore <paul@paul-moore.com>
include/linux/lsm_hook_defs.h
include/linux/security.h
kernel/auditsc.c
security/integrity/ima/ima_policy.c
security/security.c
security/selinux/hooks.c
security/smack/smack_lsm.c