Lines Matching full:cap
25 __u32 cap[_KERNEL_CAPABILITY_U32S]; member
98 #define cap_raise(c, flag) ((c).cap[CAP_TO_INDEX(flag)] |= CAP_TO_MASK(flag))
99 #define cap_lower(c, flag) ((c).cap[CAP_TO_INDEX(flag)] &= ~CAP_TO_MASK(flag))
100 #define cap_raised(c, flag) ((c).cap[CAP_TO_INDEX(flag)] & CAP_TO_MASK(flag))
106 c.cap[__capi] = a.cap[__capi] OP b.cap[__capi]; \
114 c.cap[__capi] = OP a.cap[__capi]; \
153 if (a.cap[__capi] != 0) in cap_isclear()
204 extern bool has_capability(struct task_struct *t, int cap);
206 struct user_namespace *ns, int cap);
207 extern bool has_capability_noaudit(struct task_struct *t, int cap);
209 struct user_namespace *ns, int cap);
210 extern bool capable(int cap);
211 extern bool ns_capable(struct user_namespace *ns, int cap);
212 extern bool ns_capable_noaudit(struct user_namespace *ns, int cap);
213 extern bool ns_capable_setid(struct user_namespace *ns, int cap);
215 static inline bool has_capability(struct task_struct *t, int cap) in has_capability() argument
220 struct user_namespace *ns, int cap) in has_ns_capability() argument
224 static inline bool has_capability_noaudit(struct task_struct *t, int cap) in has_capability_noaudit() argument
229 struct user_namespace *ns, int cap) in has_ns_capability_noaudit() argument
233 static inline bool capable(int cap) in capable() argument
237 static inline bool ns_capable(struct user_namespace *ns, int cap) in ns_capable() argument
241 static inline bool ns_capable_noaudit(struct user_namespace *ns, int cap) in ns_capable_noaudit() argument
245 static inline bool ns_capable_setid(struct user_namespace *ns, int cap) in ns_capable_setid() argument
251 extern bool capable_wrt_inode_uidgid(const struct inode *inode, int cap);
252 extern bool file_ns_capable(const struct file *file, struct user_namespace *ns, int cap);
270 /* audit system wants to get cap info from files as well */