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 c398cff3dab7..68d56effc328 100644
--- a/include/linux/capability.h
+++ b/include/linux/capability.h
@@ -377,6 +377,7 @@ struct cpu_vfs_cap_data {
377 377
378#ifdef __KERNEL__ 378#ifdef __KERNEL__
379 379
380struct inode;
380struct dentry; 381struct dentry;
381struct user_namespace; 382struct user_namespace;
382 383
@@ -551,6 +552,7 @@ extern bool has_ns_capability_noaudit(struct task_struct *t,
551extern bool capable(int cap); 552extern bool capable(int cap);
552extern bool ns_capable(struct user_namespace *ns, int cap); 553extern bool ns_capable(struct user_namespace *ns, int cap);
553extern bool nsown_capable(int cap); 554extern bool nsown_capable(int cap);
555extern bool inode_capable(const struct inode *inode, int cap);
554 556
555/* audit system wants to get cap info from files as well */ 557/* audit system wants to get cap info from files as well */
556extern int get_vfs_caps_from_disk(const struct dentry *dentry, struct cpu_vfs_cap_data *cpu_caps); 558extern int get_vfs_caps_from_disk(const struct dentry *dentry, struct cpu_vfs_cap_data *cpu_caps);