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()
602 const struct cred *cred = current_cred(); in selinux_set_mnt_opts() local
1601 static int cred_has_capability(const struct cred *cred, in cred_has_capability()
1641 static int inode_has_perm(const struct cred *cred, in inode_has_perm()
1664 static inline int dentry_has_perm(const struct cred *cred, in dentry_has_perm()
1680 static inline int path_has_perm(const struct cred *cred, in path_has_perm()
1694 static inline int file_path_has_perm(const struct cred *cred, in file_path_has_perm()
1717 static int file_has_perm(const struct cred *cred, in file_has_perm()
1936 static int superblock_has_perm(const struct cred *cred, in superblock_has_perm()
2142 static int selinux_capable(const struct cred *cred, struct user_namespace *ns, in selinux_capable()
2150 const struct cred *cred = current_cred(); in selinux_quotactl() local
2185 const struct cred *cred = current_cred(); in selinux_quota_on() local
2423 static inline void flush_unauthorized_files(const struct cred *cred, in flush_unauthorized_files()
2719 const struct cred *cred = current_cred(); in selinux_sb_kern_mount() local
2729 const struct cred *cred = current_cred(); in selinux_sb_statfs() local
2743 const struct cred *cred = current_cred(); in selinux_mount() local
2755 const struct cred *cred = current_cred(); in selinux_move_mount() local
2762 const struct cred *cred = current_cred(); in selinux_umount() local
3041 const struct cred *cred = current_cred(); in selinux_inode_readlink() local
3049 const struct cred *cred = current_cred(); in selinux_inode_follow_link() local
3089 const struct cred *cred = current_cred(); in selinux_inode_permission() local
3140 const struct cred *cred = current_cred(); in selinux_inode_setattr() local
3173 const struct cred *cred = current_cred(); in has_cap_mac_admin() local
3319 const struct cred *cred = current_cred(); in selinux_inode_getxattr() local
3326 const struct cred *cred = current_cred(); in selinux_inode_listxattr() local
3592 const struct cred *cred = current_cred(); in selinux_revalidate_file_permission() local
3638 static int ioctl_has_perm(const struct cred *cred, struct file *file, in ioctl_has_perm()
3680 const struct cred *cred = current_cred(); in selinux_file_ioctl() local
3728 const struct cred *cred = current_cred(); in file_map_prot_check() local
3805 const struct cred *cred = current_cred(); in selinux_file_mprotect() local
3845 const struct cred *cred = current_cred(); in selinux_file_lock() local
3853 const struct cred *cred = current_cred(); in selinux_file_fcntl() local
3923 const struct cred *cred = current_cred(); in selinux_file_receive() local
4164 static int selinux_task_prlimit(const struct cred *cred, const struct cred *tcred, in selinux_task_prlimit()
4219 int sig, const struct cred *cred) in selinux_task_kill()
6614 static int selinux_key_alloc(struct key *k, const struct cred *cred, in selinux_key_alloc()
6643 const struct cred *cred, in selinux_key_permission()