Lines Matching refs:current_cred
723 const struct cred *cred = current_cred(); in selinux_set_mnt_opts()
2321 const struct cred *cred = current_cred(); in selinux_quotactl()
2349 const struct cred *cred = current_cred(); in selinux_quota_on()
2389 rc = cred_has_capability(current_cred(), CAP_SYS_ADMIN, in selinux_vm_enough_memory()
2923 const struct cred *cred = current_cred(); in selinux_sb_kern_mount()
2942 const struct cred *cred = current_cred(); in selinux_sb_statfs()
2956 const struct cred *cred = current_cred(); in selinux_mount()
2967 const struct cred *cred = current_cred(); in selinux_umount()
3115 const struct cred *cred = current_cred(); in selinux_inode_readlink()
3123 const struct cred *cred = current_cred(); in selinux_inode_follow_link()
3164 const struct cred *cred = current_cred(); in selinux_inode_permission()
3209 const struct cred *cred = current_cred(); in selinux_inode_setattr()
3237 return path_has_perm(current_cred(), path, FILE__GETATTR); in selinux_inode_getattr()
3242 const struct cred *cred = current_cred(); in has_cap_mac_admin()
3269 return dentry_has_perm(current_cred(), dentry, FILE__SETATTR); in selinux_inode_setxattr()
3376 const struct cred *cred = current_cred(); in selinux_inode_getxattr()
3383 const struct cred *cred = current_cred(); in selinux_inode_listxattr()
3397 return dentry_has_perm(current_cred(), dentry, FILE__SETATTR); in selinux_inode_removexattr()
3528 const struct cred *cred = current_cred(); in selinux_revalidate_file_permission()
3615 const struct cred *cred = current_cred(); in selinux_file_ioctl()
3663 const struct cred *cred = current_cred(); in file_map_prot_check()
3723 rc = inode_has_perm(current_cred(), file_inode(file), in selinux_mmap_file()
3740 const struct cred *cred = current_cred(); in selinux_file_mprotect()
3780 const struct cred *cred = current_cred(); in selinux_file_lock()
3788 const struct cred *cred = current_cred(); in selinux_file_fcntl()
3858 const struct cred *cred = current_cred(); in selinux_file_receive()