Lines Matching refs:old
890 struct superblock_security_struct *old = oldsb->s_security; in selinux_cmp_sb_context() local
892 char oldflags = old->flags & SE_MNTMASK; in selinux_cmp_sb_context()
897 if ((oldflags & FSCONTEXT_MNT) && old->sid != new->sid) in selinux_cmp_sb_context()
899 if ((oldflags & CONTEXT_MNT) && old->mntpoint_sid != new->mntpoint_sid) in selinux_cmp_sb_context()
901 if ((oldflags & DEFCONTEXT_MNT) && old->def_sid != new->def_sid) in selinux_cmp_sb_context()
2170 static int selinux_capset(struct cred *new, const struct cred *old, in selinux_capset() argument
2176 cred_sid(old), cred_sid(new), SECCLASS_PROCESS, in selinux_capset()
2901 const struct cred *old, in selinux_dentry_create_files_as() argument
2908 rc = selinux_determine_inode_label(selinux_cred(old), in selinux_dentry_create_files_as()
3948 static int selinux_cred_prepare(struct cred *new, const struct cred *old, in selinux_cred_prepare() argument
3951 const struct task_security_struct *old_tsec = selinux_cred(old); in selinux_cred_prepare()
3961 static void selinux_cred_transfer(struct cred *new, const struct cred *old) in selinux_cred_transfer() argument
3963 const struct task_security_struct *old_tsec = selinux_cred(old); in selinux_cred_transfer()