Lines Matching refs:user_ns
77 if (ns == cred->user_ns) in cap_capable()
84 if (ns->level <= cred->user_ns->level) in cap_capable()
91 if ((ns->parent == cred->user_ns) && uid_eq(ns->owner, cred->euid)) in cap_capable()
147 if (cred->user_ns == child_cred->user_ns && in cap_ptrace_access_check()
150 if (ns_capable(child_cred->user_ns, CAP_SYS_PTRACE)) in cap_ptrace_access_check()
179 if (cred->user_ns == child_cred->user_ns && in cap_ptrace_traceme()
182 if (has_ns_capability(parent, child_cred->user_ns, CAP_SYS_PTRACE)) in cap_ptrace_traceme()
224 if (cap_capable(current_cred(), current_cred()->user_ns, in cap_inh_is_capped()
901 root_uid = make_kuid(new->user_ns, 0); in cap_bprm_creds_from_file()
918 !ptracer_capable(current, new->user_ns))) { in cap_bprm_creds_from_file()
920 if (!ns_capable(new->user_ns, CAP_SETUID) || in cap_bprm_creds_from_file()
992 struct user_namespace *user_ns = dentry->d_sb->s_user_ns; in cap_inode_setxattr() local
1006 if (!ns_capable(user_ns, CAP_SYS_ADMIN)) in cap_inode_setxattr()
1033 struct user_namespace *user_ns = dentry->d_sb->s_user_ns; in cap_inode_removexattr() local
1050 if (!ns_capable(user_ns, CAP_SYS_ADMIN)) in cap_inode_removexattr()
1086 kuid_t root_uid = make_kuid(old->user_ns, 0); in cap_emulate_setxuid()
1143 kuid_t root_uid = make_kuid(old->user_ns, 0); in cap_task_fix_setuid()
1179 if (!is_subset && !ns_capable(__task_cred(p)->user_ns, CAP_SYS_NICE)) in cap_safe_nice()
1305 current_cred()->user_ns, in cap_task_prctl()