Re: [PATCH v25 17/25] LSM: Use lsmcontext in security_inode_getsecctx

2021-03-12 Thread Chuck Lever III
Hi Casey- > On Mar 9, 2021, at 9:42 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

[PATCH v25 17/25] LSM: Use lsmcontext in security_inode_getsecctx

2021-03-09 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 Acked-by: Paul Moore Reviewe