Lines Matching refs:old
292 * found; in that case, continue using the old label.
603 /* check if the old mount command had the same options */
873 struct superblock_security_struct *old = selinux_superblock(oldsb);
875 char oldflags = old->flags & SE_MNTMASK;
880 if ((oldflags & FSCONTEXT_MNT) && old->sid != new->sid)
882 if ((oldflags & CONTEXT_MNT) && old->mntpoint_sid != new->mntpoint_sid)
884 if ((oldflags & DEFCONTEXT_MNT) && old->def_sid != new->def_sid)
935 /* how can we clone if the old one wasn't set up?? */
2116 static int selinux_capset(struct cred *new, const struct cred *old,
2121 return avc_has_perm(cred_sid(old), cred_sid(new), SECCLASS_PROCESS,
2258 * the old and new contexts.
2335 * Fallback to old SID on NNP or nosuid if not an allowed
2473 /* Check whether the new SID can inherit resource limits from the old
2515 /* Check whether the new SID can inherit signal state from the old SID.
2882 const struct cred *old,
2889 rc = selinux_determine_inode_label(selinux_cred(old),
3987 static int selinux_cred_prepare(struct cred *new, const struct cred *old,
3990 const struct task_security_struct *old_tsec = selinux_cred(old);
4000 static void selinux_cred_transfer(struct cred *new, const struct cred *old)
4002 const struct task_security_struct *old_tsec = selinux_cred(old);