Searched refs:tsec (Results 1 – 3 of 3) sorted by relevance
193 struct task_security_struct *tsec; in cred_init_security() local195 tsec = kzalloc(sizeof(struct task_security_struct), GFP_KERNEL); in cred_init_security()196 if (!tsec) in cred_init_security()199 tsec->osid = tsec->sid = SECINITSID_KERNEL; in cred_init_security()200 cred->security = tsec; in cred_init_security()208 const struct task_security_struct *tsec; in cred_sid() local210 tsec = cred->security; in cred_sid()211 return tsec->sid; in cred_sid()446 const struct task_security_struct *tsec = cred->security; in may_context_mount_sb_relabel() local449 rc = avc_has_perm(tsec->sid, sbsec->sid, SECCLASS_FILESYSTEM, in may_context_mount_sb_relabel()[all …]
82 const struct task_security_struct *tsec = current_security(); in selinux_xfrm_alloc_user() local108 rc = avc_has_perm(tsec->sid, ctx->ctx_sid, in selinux_xfrm_alloc_user()139 const struct task_security_struct *tsec = current_security(); in selinux_xfrm_delete() local144 return avc_has_perm(tsec->sid, ctx->ctx_sid, in selinux_xfrm_delete()
46 const struct task_security_struct *tsec = current_security(); in current_sid() local48 return tsec->sid; in current_sid()