Lines Matching refs:current_cred

602 	const struct cred *cred = current_cred();  in selinux_set_mnt_opts()
1787 const struct task_security_struct *tsec = selinux_cred(current_cred()); in may_create()
2150 const struct cred *cred = current_cred(); in selinux_quotactl()
2185 const struct cred *cred = current_cred(); in selinux_quota_on()
2225 rc = cred_has_capability(current_cred(), CAP_SYS_ADMIN, in selinux_vm_enough_memory()
2315 old_tsec = selinux_cred(current_cred()); in selinux_bprm_creds_for_exec()
2523 const struct task_security_struct *tsec = selinux_cred(current_cred()); in selinux_bprm_committed_creds()
2719 const struct cred *cred = current_cred(); in selinux_sb_kern_mount()
2729 const struct cred *cred = current_cred(); in selinux_sb_statfs()
2743 const struct cred *cred = current_cred(); in selinux_mount()
2755 const struct cred *cred = current_cred(); in selinux_move_mount()
2762 const struct cred *cred = current_cred(); in selinux_umount()
2862 rc = selinux_determine_inode_label(selinux_cred(current_cred()), in selinux_dentry_init_security()
2899 const struct task_security_struct *tsec = selinux_cred(current_cred()); in selinux_inode_init_security()
2946 const struct task_security_struct *tsec = selinux_cred(current_cred()); in selinux_inode_init_security_anon()
3041 const struct cred *cred = current_cred(); in selinux_inode_readlink()
3049 const struct cred *cred = current_cred(); in selinux_inode_follow_link()
3089 const struct cred *cred = current_cred(); in selinux_inode_permission()
3140 const struct cred *cred = current_cred(); in selinux_inode_setattr()
3168 return path_has_perm(current_cred(), path, FILE__GETATTR); in selinux_inode_getattr()
3173 const struct cred *cred = current_cred(); in has_cap_mac_admin()
3200 return dentry_has_perm(current_cred(), dentry, FILE__SETATTR); in selinux_inode_setxattr()
3319 const struct cred *cred = current_cred(); in selinux_inode_getxattr()
3326 const struct cred *cred = current_cred(); in selinux_inode_listxattr()
3340 return dentry_has_perm(current_cred(), dentry, FILE__SETATTR); in selinux_inode_removexattr()
3372 ret = superblock_has_perm(current_cred(), path->dentry->d_sb, in selinux_path_notify()
3392 return path_has_perm(current_cred(), path, perm); in selinux_path_notify()
3532 const struct task_security_struct *tsec = selinux_cred(current_cred()); in selinux_kernfs_init_security()
3592 const struct cred *cred = current_cred(); in selinux_revalidate_file_permission()
3680 const struct cred *cred = current_cred(); in selinux_file_ioctl()
3728 const struct cred *cred = current_cred(); in file_map_prot_check()
3788 rc = inode_has_perm(current_cred(), file_inode(file), in selinux_mmap_file()
3805 const struct cred *cred = current_cred(); in selinux_file_mprotect()
3845 const struct cred *cred = current_cred(); in selinux_file_lock()
3853 const struct cred *cred = current_cred(); in selinux_file_fcntl()
3923 const struct cred *cred = current_cred(); in selinux_file_receive()
4576 const struct task_security_struct *tsec = selinux_cred(current_cred()); in selinux_socket_create()
4596 const struct task_security_struct *tsec = selinux_cred(current_cred()); in selinux_socket_post_create()
5491 __tsec = selinux_cred(current_cred()); in selinux_secmark_relabel_packet()