X-Git-Url: https://git.efficios.com/?a=blobdiff_plain;f=include%2Flinux%2Fcapability.h;h=5f3c63dde2d5acb41077b879cf67758dd63a51e3;hb=c7fac299672ee98a1da90ea2e473180fc75d2c53;hp=00690ff92edfed99956b04947d2c09b9ebac580f;hpb=d974f09ea4970d0299a8267111312b80adbd20e6;p=deliverable%2Flinux.git diff --git a/include/linux/capability.h b/include/linux/capability.h index 00690ff92edf..5f3c63dde2d5 100644 --- a/include/linux/capability.h +++ b/include/linux/capability.h @@ -206,6 +206,7 @@ extern bool has_ns_capability_noaudit(struct task_struct *t, struct user_namespace *ns, int cap); extern bool capable(int cap); extern bool ns_capable(struct user_namespace *ns, int cap); +extern bool ns_capable_noaudit(struct user_namespace *ns, int cap); #else static inline bool has_capability(struct task_struct *t, int cap) { @@ -233,6 +234,10 @@ static inline bool ns_capable(struct user_namespace *ns, int cap) { return true; } +static inline bool ns_capable_noaudit(struct user_namespace *ns, int cap) +{ + return true; +} #endif /* CONFIG_MULTIUSER */ extern bool capable_wrt_inode_uidgid(const struct inode *inode, int cap); extern bool file_ns_capable(const struct file *file, struct user_namespace *ns, int cap);