diff options
author | James Morris <jmorris@namei.org> | 2011-05-19 04:51:57 -0400 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2011-05-19 04:51:57 -0400 |
commit | 12a5a2621b1ee14d32beca35304d7c6076a58815 (patch) | |
tree | 213e13f99de690b3c4a510f504393b63ada626bd /include/linux/capability.h | |
parent | e77dc3460fa59be5759e9327ad882868eee9d61b (diff) | |
parent | 61c4f2c81c61f73549928dfd9f3e8f26aa36a8cf (diff) |
Merge branch 'master' into next
Conflicts:
include/linux/capability.h
Manually resolve merge conflict w/ thanks to Stephen Rothwell.
Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'include/linux/capability.h')
-rw-r--r-- | include/linux/capability.h | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/include/linux/capability.h b/include/linux/capability.h index 04fed72809de..cb15818310f4 100644 --- a/include/linux/capability.h +++ b/include/linux/capability.h | |||
@@ -541,20 +541,7 @@ extern bool has_capability_noaudit(struct task_struct *t, int cap); | |||
541 | extern bool capable(int cap); | 541 | extern bool capable(int cap); |
542 | extern bool ns_capable(struct user_namespace *ns, int cap); | 542 | extern bool ns_capable(struct user_namespace *ns, int cap); |
543 | extern bool task_ns_capable(struct task_struct *t, int cap); | 543 | extern bool task_ns_capable(struct task_struct *t, int cap); |
544 | 544 | extern bool nsown_capable(int cap); | |
545 | extern const kernel_cap_t __cap_empty_set; | ||
546 | |||
547 | /** | ||
548 | * nsown_capable - Check superior capability to one's own user_ns | ||
549 | * @cap: The capability in question | ||
550 | * | ||
551 | * Return true if the current task has the given superior capability | ||
552 | * targeted at its own user namespace. | ||
553 | */ | ||
554 | static inline bool nsown_capable(int cap) | ||
555 | { | ||
556 | return ns_capable(current_user_ns(), cap); | ||
557 | } | ||
558 | 545 | ||
559 | /* audit system wants to get cap info from files as well */ | 546 | /* audit system wants to get cap info from files as well */ |
560 | extern int get_vfs_caps_from_disk(const struct dentry *dentry, struct cpu_vfs_cap_data *cpu_caps); | 547 | extern int get_vfs_caps_from_disk(const struct dentry *dentry, struct cpu_vfs_cap_data *cpu_caps); |