Lines Matching refs:cap

24 	__u32 cap[_KERNEL_CAPABILITY_U32S];  member
97 #define cap_raise(c, flag) ((c).cap[CAP_TO_INDEX(flag)] |= CAP_TO_MASK(flag))
98 #define cap_lower(c, flag) ((c).cap[CAP_TO_INDEX(flag)] &= ~CAP_TO_MASK(flag))
99 #define cap_raised(c, flag) ((c).cap[CAP_TO_INDEX(flag)] & CAP_TO_MASK(flag))
105 c.cap[__capi] = a.cap[__capi] OP b.cap[__capi]; \
113 c.cap[__capi] = OP a.cap[__capi]; \
152 if (a.cap[__capi] != 0) in cap_isclear()
174 static inline int cap_is_fs_cap(int cap) in cap_is_fs_cap() argument
177 return !!(CAP_TO_MASK(cap) & __cap_fs_set.cap[CAP_TO_INDEX(cap)]); in cap_is_fs_cap()
209 extern bool has_capability(struct task_struct *t, int cap);
211 struct user_namespace *ns, int cap);
212 extern bool has_capability_noaudit(struct task_struct *t, int cap);
214 struct user_namespace *ns, int cap);
215 extern bool capable(int cap);
216 extern bool ns_capable(struct user_namespace *ns, int cap);
218 static inline bool has_capability(struct task_struct *t, int cap) in has_capability() argument
223 struct user_namespace *ns, int cap) in has_ns_capability() argument
227 static inline bool has_capability_noaudit(struct task_struct *t, int cap) in has_capability_noaudit() argument
232 struct user_namespace *ns, int cap) in has_ns_capability_noaudit() argument
236 static inline bool capable(int cap) in capable() argument
240 static inline bool ns_capable(struct user_namespace *ns, int cap) in ns_capable() argument
245 extern bool capable_wrt_inode_uidgid(const struct inode *inode, int cap);
246 extern bool file_ns_capable(const struct file *file, struct user_namespace *ns, int cap);