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

There may be more than one LSM that provides IPC data for auditing.
Change security_ipc_getsecid() to fill in a lsm_prop structure instead
of the u32 secid.  Change the name to security_ipc_getlsmprop() to
reflect the change.

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