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

/linux-4.4.14/security/selinux/
H A Dhooks.c2171 const struct task_security_struct *new_tsec) check_nnp_nosuid()
2180 if (new_tsec->sid == old_tsec->sid) check_nnp_nosuid()
2189 rc = security_bounded_transition(old_tsec->sid, new_tsec->sid); check_nnp_nosuid()
2207 struct task_security_struct *new_tsec; selinux_bprm_set_creds() local
2219 new_tsec = bprm->cred->security; selinux_bprm_set_creds()
2223 new_tsec->sid = old_tsec->sid; selinux_bprm_set_creds()
2224 new_tsec->osid = old_tsec->sid; selinux_bprm_set_creds()
2227 new_tsec->create_sid = 0; selinux_bprm_set_creds()
2228 new_tsec->keycreate_sid = 0; selinux_bprm_set_creds()
2229 new_tsec->sockcreate_sid = 0; selinux_bprm_set_creds()
2232 new_tsec->sid = old_tsec->exec_sid; selinux_bprm_set_creds()
2234 new_tsec->exec_sid = 0; selinux_bprm_set_creds()
2237 rc = check_nnp_nosuid(bprm, old_tsec, new_tsec); selinux_bprm_set_creds()
2244 &new_tsec->sid); selinux_bprm_set_creds()
2252 rc = check_nnp_nosuid(bprm, old_tsec, new_tsec); selinux_bprm_set_creds()
2254 new_tsec->sid = old_tsec->sid; selinux_bprm_set_creds()
2260 if (new_tsec->sid == old_tsec->sid) { selinux_bprm_set_creds()
2267 rc = avc_has_perm(old_tsec->sid, new_tsec->sid, selinux_bprm_set_creds()
2272 rc = avc_has_perm(new_tsec->sid, isec->sid, selinux_bprm_set_creds()
2279 rc = avc_has_perm(old_tsec->sid, new_tsec->sid, selinux_bprm_set_creds()
2303 rc = avc_has_perm(ptsid, new_tsec->sid, selinux_bprm_set_creds()
2398 struct task_security_struct *new_tsec; selinux_bprm_committing_creds() local
2402 new_tsec = bprm->cred->security; selinux_bprm_committing_creds()
2403 if (new_tsec->sid == new_tsec->osid) selinux_bprm_committing_creds()
2422 rc = avc_has_perm(new_tsec->osid, new_tsec->sid, SECCLASS_PROCESS, selinux_bprm_committing_creds()
2169 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 117 milliseconds