aboutsummaryrefslogtreecommitdiff
path: root/security/selinux
diff options
context:
space:
mode:
authorGravatar Casey Schaufler <casey@schaufler-ca.com> 2023-09-12 13:56:52 -0700
committerGravatar Paul Moore <paul@paul-moore.com> 2023-11-12 22:54:42 -0500
commite1ca7129db2c3b3c4d261702905a752e6b2710b4 (patch)
tree34bad43a2ebc45477a111b9e7cb27aa76b4e70d7 /security/selinux
parentLSM: wireup Linux Security Module syscalls (diff)
downloadlinux-e1ca7129db2c3b3c4d261702905a752e6b2710b4.tar.gz
linux-e1ca7129db2c3b3c4d261702905a752e6b2710b4.tar.bz2
linux-e1ca7129db2c3b3c4d261702905a752e6b2710b4.zip
LSM: Helpers for attribute names and filling lsm_ctx
Add lsm_name_to_attr(), which translates a text string to a LSM_ATTR value if one is available. Add lsm_fill_user_ctx(), which fills a struct lsm_ctx, including the trailing attribute value. Both are used in module specific components of LSM system calls. Signed-off-by: Casey Schaufler <casey@schaufler-ca.com> Reviewed-by: John Johansen <john.johansen@canonical.com> Reviewed-by: Serge Hallyn <serge@hallyn.com> Reviewed-by: Mickaël Salaün <mic@digikod.net> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/selinux')
0 files changed, 0 insertions, 0 deletions