Lines Matching refs:old
590 /* check if the old mount command had the same options */
836 struct superblock_security_struct *old = oldsb->s_security;
838 char oldflags = old->flags & SE_MNTMASK;
843 if ((oldflags & FSCONTEXT_MNT) && old->sid != new->sid)
845 if ((oldflags & CONTEXT_MNT) && old->mntpoint_sid != new->mntpoint_sid)
847 if ((oldflags & DEFCONTEXT_MNT) && old->def_sid != new->def_sid)
880 /* how can we clone if the old one wasn't set up?? */
2030 static int selinux_capset(struct cred *new, const struct cred *old,
2037 error = cap_capset(new, old,
2042 return cred_has_perm(old, new, PROCESS__SETCAP);
2235 * Fallback to old SID on NNP or nosuid if not an allowed
2398 /* Check whether the new SID can inherit resource limits from the old
2440 /* Check whether the new SID can inherit signal state from the old SID.
3579 static int selinux_cred_prepare(struct cred *new, const struct cred *old,
3585 old_tsec = old->security;
3598 static void selinux_cred_transfer(struct cred *new, const struct cred *old)
3600 const struct task_security_struct *old_tsec = old->security;