Searched refs:old_tsec (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/security/selinux/
H A Dhooks.c2154 const struct task_security_struct *old_tsec, check_nnp_nosuid()
2164 if (new_tsec->sid == old_tsec->sid) check_nnp_nosuid()
2173 rc = security_bounded_transition(old_tsec->sid, new_tsec->sid); check_nnp_nosuid()
2190 const struct task_security_struct *old_tsec; selinux_bprm_set_creds() local
2206 old_tsec = current_security(); selinux_bprm_set_creds()
2211 new_tsec->sid = old_tsec->sid; selinux_bprm_set_creds()
2212 new_tsec->osid = old_tsec->sid; selinux_bprm_set_creds()
2219 if (old_tsec->exec_sid) { selinux_bprm_set_creds()
2220 new_tsec->sid = old_tsec->exec_sid; selinux_bprm_set_creds()
2225 rc = check_nnp_nosuid(bprm, old_tsec, new_tsec); selinux_bprm_set_creds()
2230 rc = security_transition_sid(old_tsec->sid, isec->sid, selinux_bprm_set_creds()
2240 rc = check_nnp_nosuid(bprm, old_tsec, new_tsec); selinux_bprm_set_creds()
2242 new_tsec->sid = old_tsec->sid; selinux_bprm_set_creds()
2248 if (new_tsec->sid == old_tsec->sid) { selinux_bprm_set_creds()
2249 rc = avc_has_perm(old_tsec->sid, isec->sid, selinux_bprm_set_creds()
2255 rc = avc_has_perm(old_tsec->sid, new_tsec->sid, selinux_bprm_set_creds()
2267 rc = avc_has_perm(old_tsec->sid, new_tsec->sid, selinux_bprm_set_creds()
3540 const struct task_security_struct *old_tsec; selinux_cred_prepare() local
3543 old_tsec = old->security; selinux_cred_prepare()
3545 tsec = kmemdup(old_tsec, sizeof(struct task_security_struct), gfp); selinux_cred_prepare()
3558 const struct task_security_struct *old_tsec = old->security; selinux_cred_transfer() local
3561 *tsec = *old_tsec; selinux_cred_transfer()
2153 check_nnp_nosuid(const struct linux_binprm *bprm, const struct task_security_struct *old_tsec, const struct task_security_struct *new_tsec) check_nnp_nosuid() argument

Completed in 62 milliseconds