]> git.proxmox.com Git - mirror_ubuntu-impish-kernel.git/commit
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)
committerAndrea Righi <andrea.righi@canonical.com>
Mon, 28 Jun 2021 06:03:54 +0000 (08:03 +0200)
commitcf112d0b4bcc178b4a5c7c241abb52b2144825d8
tree4d9e49894c382b23423f4a23990051912e0b2398
parent39d386dd6ec3686717f02537c5dbabfb4dc7562b
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