Home
last modified time | relevance | path

Searched refs:tsec (Results 1 – 3 of 3) sorted by relevance

/security/selinux/
Dhooks.c193 struct task_security_struct *tsec; in cred_init_security() local
195 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() local
210 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() local
449 rc = avc_has_perm(tsec->sid, sbsec->sid, SECCLASS_FILESYSTEM, in may_context_mount_sb_relabel()
[all …]
Dxfrm.c82 const struct task_security_struct *tsec = current_security(); in selinux_xfrm_alloc_user() local
108 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() local
144 return avc_has_perm(tsec->sid, ctx->ctx_sid, in selinux_xfrm_delete()
/security/selinux/include/
Dobjsec.h46 const struct task_security_struct *tsec = current_security(); in current_sid() local
48 return tsec->sid; in current_sid()