[PATCH v3 3/5] LSM: Use lsm_context in security_inode_getsecctx
Paul Moore
paul at paul-moore.com
Thu Oct 31 22:53:39 UTC 2024
On Oct 23, 2024 Casey Schaufler <casey at schaufler-ca.com> wrote:
>
> 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.
>
> Signed-off-by: Casey Schaufler <casey at schaufler-ca.com>
> Cc: linux-nfs at vger.kernel.org
> ---
> fs/nfsd/nfs4xdr.c | 26 ++++++++++----------------
> include/linux/lsm_hook_defs.h | 4 ++--
> include/linux/security.h | 5 +++--
> security/security.c | 12 ++++++------
> security/selinux/hooks.c | 10 ++++++----
> security/smack/smack_lsm.c | 7 ++++---
> 6 files changed, 31 insertions(+), 33 deletions(-)
See my note on patch 1/5, merging into lsm/dev.
--
paul-moore.com
More information about the Linux-security-module-archive
mailing list