Lines Matching refs:new_tsec
2241 const struct task_security_struct *new_tsec)
2251 if (new_tsec->sid == old_tsec->sid)
2266 rc = avc_has_perm(old_tsec->sid, new_tsec->sid,
2278 new_tsec->sid);
2295 struct task_security_struct *new_tsec;
2305 new_tsec = selinux_cred(bprm->cred);
2309 new_tsec->sid = old_tsec->sid;
2310 new_tsec->osid = old_tsec->sid;
2313 new_tsec->create_sid = 0;
2314 new_tsec->keycreate_sid = 0;
2315 new_tsec->sockcreate_sid = 0;
2318 new_tsec->sid = old_tsec->exec_sid;
2320 new_tsec->exec_sid = 0;
2323 rc = check_nnp_nosuid(bprm, old_tsec, new_tsec);
2330 &new_tsec->sid);
2338 rc = check_nnp_nosuid(bprm, old_tsec, new_tsec);
2340 new_tsec->sid = old_tsec->sid;
2346 if (new_tsec->sid == old_tsec->sid) {
2353 rc = avc_has_perm(old_tsec->sid, new_tsec->sid,
2358 rc = avc_has_perm(new_tsec->sid, isec->sid,
2365 rc = avc_has_perm(old_tsec->sid, new_tsec->sid,
2377 rc = avc_has_perm(ptsid, new_tsec->sid,
2391 rc = avc_has_perm(old_tsec->sid, new_tsec->sid,
2459 struct task_security_struct *new_tsec;
2463 new_tsec = selinux_cred(bprm->cred);
2464 if (new_tsec->sid == new_tsec->osid)
2483 rc = avc_has_perm(new_tsec->osid, new_tsec->sid, SECCLASS_PROCESS,