Re: [PATCH v26 08/25] LSM: Use lsmblob in security_secid_to_secctx

From
Kees Cook <hidden>
Date
2021-05-14 19:05:08
Also in
linux-security-module, lkml, netfilter-devel, selinux
Reply to
Casey Schaufler, 2021-05-13
On Thu, May 13, 2021 at 01:07:50PM -0700, Casey Schaufler wrote:
Change security_secid_to_secctx() to take a lsmblob as input
instead of a u32 secid. It will then call the LSM hooks
using the lsmblob element allocated for that module. The
callers have been updated as well. This allows for the
possibility that more than one module may be called upon
to translate a secid to a string, as can occur in the
audit code.

Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
This looks sensible.

Reviewed-by: Kees Cook <redacted>

-- 
Kees Cook
Thread (3 messages) 3 messages, 3 authors, last reply 2021-05-21
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