Re: [PATCH v20 16/23] LSM: Use lsmcontext in security_inode_getsecctx

From
Paul Moore <paul@paul-moore.com>
Date
2020-09-06 02:56:02
Also in
selinux
Reply to
Casey Schaufler, 2020-08-26
On Wed, Aug 26, 2020 at 11:19 AM Casey Schaufler [off-list ref] wrote:
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 <redacted>
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
---
 fs/nfsd/nfs4xdr.c        | 23 +++++++++--------------
 include/linux/security.h |  5 +++--
 security/security.c      | 13 +++++++++++--
 3 files changed, 23 insertions(+), 18 deletions(-)
Acked-by: Paul Moore <paul@paul-moore.com>

-- 
paul moore
www.paul-moore.com
Thread (63 messages) 63 messages, 7 authors, last reply 2020-09-10
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help