Lines Matching defs:cred
214 struct cred *cred = (struct cred *) current->real_cred; in cred_init_security() local
224 static inline u32 cred_sid(const struct cred *cred) in cred_sid()
411 const struct cred *cred) in may_context_mount_sb_relabel()
430 const struct cred *cred) in may_context_mount_inode_relabel()
601 const struct cred *cred = current_cred(); in selinux_set_mnt_opts() local
1582 static int cred_has_capability(const struct cred *cred, in cred_has_capability()
1622 static int inode_has_perm(const struct cred *cred, in inode_has_perm()
1645 static inline int dentry_has_perm(const struct cred *cred, in dentry_has_perm()
1661 static inline int path_has_perm(const struct cred *cred, in path_has_perm()
1675 static inline int file_path_has_perm(const struct cred *cred, in file_path_has_perm()
1698 static int file_has_perm(const struct cred *cred, in file_has_perm()
1917 static int superblock_has_perm(const struct cred *cred, in superblock_has_perm()
2129 static int selinux_capable(const struct cred *cred, struct user_namespace *ns, in selinux_capable()
2137 const struct cred *cred = current_cred(); in selinux_quotactl() local
2172 const struct cred *cred = current_cred(); in selinux_quota_on() local
2410 static inline void flush_unauthorized_files(const struct cred *cred, in flush_unauthorized_files()
2706 const struct cred *cred = current_cred(); in selinux_sb_kern_mount() local
2716 const struct cred *cred = current_cred(); in selinux_sb_statfs() local
2730 const struct cred *cred = current_cred(); in selinux_mount() local
2742 const struct cred *cred = current_cred(); in selinux_move_mount() local
2749 const struct cred *cred = current_cred(); in selinux_umount() local
2973 const struct cred *cred = current_cred(); in selinux_inode_readlink() local
2981 const struct cred *cred = current_cred(); in selinux_inode_follow_link() local
3021 const struct cred *cred = current_cred(); in selinux_inode_permission() local
3072 const struct cred *cred = current_cred(); in selinux_inode_setattr() local
3105 const struct cred *cred = current_cred(); in has_cap_mac_admin() local
3251 const struct cred *cred = current_cred(); in selinux_inode_getxattr() local
3258 const struct cred *cred = current_cred(); in selinux_inode_listxattr() local
3520 const struct cred *cred = current_cred(); in selinux_revalidate_file_permission() local
3566 static int ioctl_has_perm(const struct cred *cred, struct file *file, in ioctl_has_perm()
3608 const struct cred *cred = current_cred(); in selinux_file_ioctl() local
3650 const struct cred *cred = current_cred(); in file_map_prot_check() local
3727 const struct cred *cred = current_cred(); in selinux_file_mprotect() local
3767 const struct cred *cred = current_cred(); in selinux_file_lock() local
3775 const struct cred *cred = current_cred(); in selinux_file_fcntl() local
3845 const struct cred *cred = current_cred(); in selinux_file_receive() local
4086 static int selinux_task_prlimit(const struct cred *cred, const struct cred *tcred, in selinux_task_prlimit()
4141 int sig, const struct cred *cred) in selinux_task_kill()
6536 static int selinux_key_alloc(struct key *k, const struct cred *cred, in selinux_key_alloc()
6565 const struct cred *cred, in selinux_key_permission()