diff options
| author | Paul Moore <paul@paul-moore.com> | 2025-11-18 17:27:58 -0500 |
|---|---|---|
| committer | Paul Moore <paul@paul-moore.com> | 2025-11-20 16:47:50 -0500 |
| commit | 3ded250b97c3ae94a642bc2e710a95700e72dfb0 (patch) | |
| tree | 0eec1cf3b2bd85d00e345e00138adc582ecc676d /security/selinux/include/objsec.h | |
| parent | dde3a5d0f4dce1d1a6095e6b8eeb59b75d28fb3b (diff) | |
selinux: rename the cred_security_struct variables to "crsec"
Along with the renaming from task_security_struct to cred_security_struct,
rename the local variables to "crsec" from "tsec". This both fits with
existing conventions and helps distinguish between task and cred related
variables.
No functional changes.
Acked-by: Stephen Smalley <stephen.smalley.work@gmail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/selinux/include/objsec.h')
| -rw-r--r-- | security/selinux/include/objsec.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/selinux/include/objsec.h b/security/selinux/include/objsec.h index 00804562c2c3..8fc3de5234ac 100644 --- a/security/selinux/include/objsec.h +++ b/security/selinux/include/objsec.h @@ -217,9 +217,9 @@ selinux_ipc(const struct kern_ipc_perm *ipc) */ static inline u32 current_sid(void) { - const struct cred_security_struct *tsec = selinux_cred(current_cred()); + const struct cred_security_struct *crsec = selinux_cred(current_cred()); - return tsec->sid; + return crsec->sid; } static inline struct superblock_security_struct * |
