Lines Matching defs:ns
144 struct user_namespace *ns, int cap);
147 struct user_namespace *ns, int cap);
149 extern bool ns_capable(struct user_namespace *ns, int cap);
150 extern bool ns_capable_noaudit(struct user_namespace *ns, int cap);
151 extern bool ns_capable_setid(struct user_namespace *ns, int cap);
158 struct user_namespace *ns, int cap)
167 struct user_namespace *ns, int cap)
175 static inline bool ns_capable(struct user_namespace *ns, int cap)
179 static inline bool ns_capable_noaudit(struct user_namespace *ns, int cap)
183 static inline bool ns_capable_setid(struct user_namespace *ns, int cap)
188 bool privileged_wrt_inode_uidgid(struct user_namespace *ns,
193 extern bool file_ns_capable(const struct file *file, struct user_namespace *ns, int cap);
194 extern bool ptracer_capable(struct task_struct *tsk, struct user_namespace *ns);
205 static inline bool checkpoint_restore_ns_capable(struct user_namespace *ns)
207 return ns_capable(ns, CAP_CHECKPOINT_RESTORE) ||
208 ns_capable(ns, CAP_SYS_ADMIN);