]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - security/security.c
UBUNTU: SAUCE: LSM: Use lsmblob in security_inode_getsecid
authorCasey Schaufler <casey@schaufler-ca.com>
Thu, 20 Aug 2020 00:28:57 +0000 (17:28 -0700)
committerPaolo Pisati <paolo.pisati@canonical.com>
Tue, 2 Nov 2021 07:24:52 +0000 (08:24 +0100)
commit59b319225d6195fd609d0c1024c7a08952611de6
tree1a5bf0ac034ae9b429bb84c0084d555029c05d73
parente209474e19a8fbec5d184a692a6596c51ba08d03
UBUNTU: SAUCE: LSM: Use lsmblob in security_inode_getsecid

Change the security_inode_getsecid() interface to fill in a
lsmblob structure instead of a u32 secid. This allows for its
callers to gather data from all registered LSMs. Data is provided
for IMA and audit.

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