]> git.ipfire.org Git - thirdparty/linux.git/commit
lsm: lsm_context in security_dentry_init_security
authorCasey Schaufler <casey@schaufler-ca.com>
Wed, 23 Oct 2024 21:21:57 +0000 (14:21 -0700)
committerPaul Moore <paul@paul-moore.com>
Wed, 4 Dec 2024 19:58:51 +0000 (14:58 -0500)
commitb530104f50e86db6f187d39fed5821b3cca755ee
tree559c63877063b4e8594a6ebb939631ac118702e4
parent76ecf306ae5da84ef8f48c7a2608736e6866440c
lsm: lsm_context in security_dentry_init_security

Replace the (secctx,seclen) pointer pair with a single lsm_context
pointer to allow return of the LSM identifier along with the context
and context length. This allows security_release_secctx() to know how
to release the context. Callers have been modified to use or save the
returned data from the new structure.

Cc: ceph-devel@vger.kernel.org
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/ceph/super.h
fs/ceph/xattr.c
fs/fuse/dir.c
fs/nfs/nfs4proc.c
include/linux/lsm_hook_defs.h
include/linux/security.h
security/security.c
security/selinux/hooks.c