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>
This commit is contained in:
Paul Moore
2025-11-18 17:27:58 -05:00
parent dde3a5d0f4
commit 3ded250b97
2 changed files with 117 additions and 117 deletions

View File

@@ -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 *