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

Change the security_current_getsecid_subj() and
security_task_getsecid_obj() interfaces to fill in a lsm_prop structure
instead of a u32 secid.  Audit interfaces will need to collect all
possible security data for possible reporting.

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: subject line tweak]
Signed-off-by: Paul Moore <paul@paul-moore.com>
16 files changed:
include/linux/lsm_hook_defs.h
include/linux/security.h
kernel/audit.c
kernel/auditfilter.c
kernel/auditsc.c
net/netlabel/netlabel_unlabeled.c
net/netlabel/netlabel_user.h
security/apparmor/lsm.c
security/integrity/ima/ima.h
security/integrity/ima/ima_api.c
security/integrity/ima/ima_appraise.c
security/integrity/ima/ima_main.c
security/integrity/ima/ima_policy.c
security/security.c
security/selinux/hooks.c
security/smack/smack_lsm.c