]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
UBUNTU: SAUCE: LSM: Use lsmcontext in security_inode_getsecctx
authorCasey Schaufler <casey@schaufler-ca.com>
Thu, 20 Aug 2020 23:25:25 +0000 (16:25 -0700)
committerPaolo Pisati <paolo.pisati@canonical.com>
Tue, 2 Nov 2021 07:24:52 +0000 (08:24 +0100)
commit1013a2337996024b0ccb28e99d3aea2fb9b7f4ff
treec11155752ba3334bfadf2f1b96c6145818893b15
parent62e4d84ca94fd76f5eaaf41232f5b0e77db4dbfd
UBUNTU: SAUCE: LSM: Use lsmcontext in security_inode_getsecctx

Change the security_inode_getsecctx() interface to fill
a lsmcontext structure instead of data and length pointers.
This provides the information about which LSM created the
context so that security_release_secctx() can use the
correct hook.

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>
fs/nfsd/nfs4xdr.c
include/linux/security.h
security/security.c