summaryrefslogtreecommitdiff
path: root/security/selinux/selinuxfs.c
diff options
context:
space:
mode:
authorPaul Moore <paul@paul-moore.com>2024-02-24 00:26:40 +0300
committerPaul Moore <paul@paul-moore.com>2024-03-26 23:37:45 +0300
commite6b5ebca41dda07b76b244462995502d9f6eb10b (patch)
treef9b492b4320c1caf9cf40ed6105712134f1cec23 /security/selinux/selinuxfs.c
parent0142c56682fbf969cc08b1e3f9223384ede29a5f (diff)
downloadlinux-e6b5ebca41dda07b76b244462995502d9f6eb10b.tar.xz
selinux: cleanup selinux_lsm_getattr()
A number of small changes to selinux_lsm_getattr() to improve the quality and readability of the code: * Explicitly set the `value` parameter to NULL in the case where an attribute has not been set. * Rename the `__tsec` variable to `tsec` to better fit the SELinux code. * Rename `bad` to `err_unlock` to better indicate the jump target drops the RCU lock. Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/selinux/selinuxfs.c')
0 files changed, 0 insertions, 0 deletions