lsm: use lsm_context in security_inode_getsecctx
authorCasey Schaufler <casey@schaufler-ca.com>
Wed, 23 Oct 2024 21:21:56 +0000 (14:21 -0700)
committerPaul Moore <paul@paul-moore.com>
Wed, 4 Dec 2024 19:58:09 +0000 (14:58 -0500)
commit76ecf306ae5da84ef8f48c7a2608736e6866440c
tree1a16d52f50d469cfa8ebdac9e84e597afb48b065
parent2d470c778120d3cdb8d8ab250329ca85f49f12b1
lsm: use lsm_context in security_inode_getsecctx

Change the security_inode_getsecctx() interface to fill a lsm_context
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.

Cc: linux-nfs@vger.kernel.org
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
[PM: subject tweak]
Signed-off-by: Paul Moore <paul@paul-moore.com>
fs/nfsd/nfs4xdr.c
include/linux/lsm_hook_defs.h
include/linux/security.h
security/security.c
security/selinux/hooks.c
security/smack/smack_lsm.c