]> www.infradead.org Git - users/dwmw2/linux.git/commit
lsm: create new security_cred_getlsmprop LSM hook
authorCasey Schaufler <casey@schaufler-ca.com>
Wed, 9 Oct 2024 17:32:18 +0000 (10:32 -0700)
committerPaul Moore <paul@paul-moore.com>
Fri, 11 Oct 2024 18:34:15 +0000 (14:34 -0400)
commitb0654ca42998440df42ba2ccc3b7dbe3bf5b7bb5
tree8c0ee9aa36bbe930160cb0e03dccb1bc861edbdc
parente0a8dcbd53b646d8535acd9fec95540275231b13
lsm: create new security_cred_getlsmprop LSM hook

Create a new LSM hook security_cred_getlsmprop() which, like
security_cred_getsecid(), fetches LSM specific attributes from the
cred structure.  The associated data elements in the audit sub-system
are changed from a secid to a lsm_prop to accommodate multiple possible
LSM audit users.

Cc: linux-integrity@vger.kernel.org
Cc: audit@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
security/integrity/ima/ima_main.c
security/security.c
security/selinux/hooks.c
security/smack/smack_lsm.c