]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
UBUNTU: SAUCE: LSM: Use lsmblob in security_cred_getsecid
authorCasey Schaufler <casey@schaufler-ca.com>
Thu, 20 Aug 2020 15:43:21 +0000 (08:43 -0700)
committerAndrea Righi <andrea.righi@canonical.com>
Thu, 9 Mar 2023 14:57:24 +0000 (15:57 +0100)
commit5048afcd1a6bd803e7d08c528ad404ea8712455a
tree28fca8e6f6fa138a3e25f63bafc6fb96c6276582
parent5623706b4af57dd8b515d3fa0f8cb334ce3b1e42
UBUNTU: SAUCE: LSM: Use lsmblob in security_cred_getsecid

Change the security_cred_getsecid() interface to fill in a
lsmblob instead of a u32 secid. The associated data elements
in the audit sub-system are changed from a secid to a lsmblob
to accommodate multiple possible LSM audit users.

Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: John Johansen <john.johansen@canonical.com>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Acked-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
cc: linux-integrity@vger.kernel.org
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/audit.c
kernel/audit.h
kernel/auditsc.c
security/integrity/ima/ima_main.c
security/security.c