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

2020-09-05 Thread Paul Moore
On Wed, Aug 26, 2020 at 11:19 AM Casey Schaufler 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 > co

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

2020-08-26 Thread Casey Schaufler
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 Signed-off-by: Casey Schaufle