Lines Matching refs:ns
296 struct user_namespace *ns, int cap) in has_ns_capability() argument
301 ret = security_capable(__task_cred(t), ns, cap); in has_ns_capability()
336 struct user_namespace *ns, int cap) in has_ns_capability_noaudit() argument
341 ret = security_capable_noaudit(__task_cred(t), ns, cap); in has_ns_capability_noaudit()
375 bool ns_capable(struct user_namespace *ns, int cap) in ns_capable() argument
382 if (security_capable(current_cred(), ns, cap) == 0) { in ns_capable()
420 bool file_ns_capable(const struct file *file, struct user_namespace *ns, in file_ns_capable() argument
426 if (security_capable(file->f_cred, ns, cap) == 0) in file_ns_capable()
444 struct user_namespace *ns = current_user_ns(); in capable_wrt_inode_uidgid() local
446 return ns_capable(ns, cap) && kuid_has_mapping(ns, inode->i_uid) && in capable_wrt_inode_uidgid()
447 kgid_has_mapping(ns, inode->i_gid); in capable_wrt_inode_uidgid()