diff options
author | Paul Moore <paul@paul-moore.com> | 2024-02-23 16:26:40 -0500 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2024-03-26 16:37:45 -0400 |
commit | e6b5ebca41dda07b76b244462995502d9f6eb10b (patch) | |
tree | f9b492b4320c1caf9cf40ed6105712134f1cec23 /lib/string_helpers.c | |
parent | 0142c56682fbf969cc08b1e3f9223384ede29a5f (diff) |
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 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions