]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
UBUNTU: SAUCE: LSM: Use lsmblob in security_ipc_getsecid
authorCasey Schaufler <casey@schaufler-ca.com>
Thu, 19 Mar 2020 16:40:29 +0000 (09:40 -0700)
committerAndrea Righi <andrea.righi@canonical.com>
Thu, 9 Mar 2023 14:57:24 +0000 (15:57 +0100)
commita22266c5cd7b613d281b97565c3ec6a799ef9a2b
treed2fb96eb6ac000fac93c17dc678c4fc60bbf7bbc
parent1dcfb19ca33d59a430b68a8b347e457bd4bdf53d
UBUNTU: SAUCE: LSM: Use lsmblob 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 lsmblob structure instead of the u32 secid. The
audit data structure containing the secid will be updated
later, so there is a bit of scaffolding here.

Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: John Johansen <john.johansen@canonical.com>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
Acked-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
include/linux/security.h
kernel/auditsc.c
security/security.c