Lines Matching defs:cred
178 struct cred *cred = (struct cred *) current->real_cred; in cred_init_security() local
192 static inline u32 cred_sid(const struct cred *cred) in cred_sid()
380 const struct cred *cred) in may_context_mount_sb_relabel()
397 const struct cred *cred) in may_context_mount_inode_relabel()
620 const struct cred *cred = current_cred(); in selinux_set_mnt_opts() local
1563 static int cred_has_capability(const struct cred *cred, in cred_has_capability()
1612 static int inode_has_perm(const struct cred *cred, in inode_has_perm()
1634 static inline int dentry_has_perm(const struct cred *cred, in dentry_has_perm()
1649 static inline int path_has_perm(const struct cred *cred, in path_has_perm()
1662 static inline int file_path_has_perm(const struct cred *cred, in file_path_has_perm()
1681 static int file_has_perm(const struct cred *cred, in file_has_perm()
1891 static int superblock_has_perm(const struct cred *cred, in superblock_has_perm()
2079 static int selinux_capable(const struct cred *cred, struct user_namespace *ns, in selinux_capable()
2087 const struct cred *cred = current_cred(); in selinux_quotactl() local
2115 const struct cred *cred = current_cred(); in selinux_quota_on() local
2345 static inline void flush_unauthorized_files(const struct cred *cred, in flush_unauthorized_files()
2672 const struct cred *cred = current_cred(); in selinux_sb_kern_mount() local
2691 const struct cred *cred = current_cred(); in selinux_sb_statfs() local
2705 const struct cred *cred = current_cred(); in selinux_mount() local
2716 const struct cred *cred = current_cred(); in selinux_umount() local
2843 const struct cred *cred = current_cred(); in selinux_inode_readlink() local
2851 const struct cred *cred = current_cred(); in selinux_inode_follow_link() local
2888 const struct cred *cred = current_cred(); in selinux_inode_permission() local
2930 const struct cred *cred = current_cred(); in selinux_inode_setattr() local
2960 const struct cred *cred = current_cred(); in selinux_inode_setotherxattr() local
3086 const struct cred *cred = current_cred(); in selinux_inode_getxattr() local
3093 const struct cred *cred = current_cred(); in selinux_inode_listxattr() local
3195 const struct cred *cred = current_cred(); in selinux_revalidate_file_permission() local
3239 static int ioctl_has_perm(const struct cred *cred, struct file *file, in ioctl_has_perm()
3278 const struct cred *cred = current_cred(); in selinux_file_ioctl() local
3326 const struct cred *cred = current_cred(); in file_map_prot_check() local
3387 const struct cred *cred = current_cred(); in selinux_file_mprotect() local
3421 const struct cred *cred = current_cred(); in selinux_file_lock() local
3429 const struct cred *cred = current_cred(); in selinux_file_fcntl() local
3498 const struct cred *cred = current_cred(); in selinux_file_receive() local
3503 static int selinux_file_open(struct file *file, const struct cred *cred) in selinux_file_open()
3540 static int selinux_cred_alloc_blank(struct cred *cred, gfp_t gfp) in selinux_cred_alloc_blank()
3555 static void selinux_cred_free(struct cred *cred) in selinux_cred_free()
5793 static int selinux_key_alloc(struct key *k, const struct cred *cred, in selinux_key_alloc()
5822 const struct cred *cred, in selinux_key_permission()