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