aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/capability.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/capability.h')
-rw-r--r--include/linux/capability.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/capability.h b/include/linux/capability.h
index 12d52dedb229..a76eca907470 100644
--- a/include/linux/capability.h
+++ b/include/linux/capability.h
@@ -374,6 +374,7 @@ struct cpu_vfs_cap_data {
374 374
375#ifdef __KERNEL__ 375#ifdef __KERNEL__
376 376
377struct inode;
377struct dentry; 378struct dentry;
378struct user_namespace; 379struct user_namespace;
379 380
@@ -548,6 +549,7 @@ extern bool has_ns_capability_noaudit(struct task_struct *t,
548extern bool capable(int cap); 549extern bool capable(int cap);
549extern bool ns_capable(struct user_namespace *ns, int cap); 550extern bool ns_capable(struct user_namespace *ns, int cap);
550extern bool nsown_capable(int cap); 551extern bool nsown_capable(int cap);
552extern bool inode_capable(const struct inode *inode, int cap);
551 553
552/* audit system wants to get cap info from files as well */ 554/* audit system wants to get cap info from files as well */
553extern int get_vfs_caps_from_disk(const struct dentry *dentry, struct cpu_vfs_cap_data *cpu_caps); 555extern int get_vfs_caps_from_disk(const struct dentry *dentry, struct cpu_vfs_cap_data *cpu_caps);