]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - security/security.c
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)
committerPaolo Pisati <paolo.pisati@canonical.com>
Tue, 2 Nov 2021 07:24:51 +0000 (08:24 +0100)
commitf9d254ba9e19852276ef4e6b783df33b3e566ba1
tree73b7de28a0fb3c0e2973440196b9d1685043c70c
parent1c55161ca7b365a277a6f4a03225d6e31c58138a
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