diff options
author | Jike Song <jike.song@intel.com> | 2017-01-12 09:52:02 +0100 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2017-01-12 15:01:56 +0100 |
commit | 19c816e8e455f58da9997e4c6626f06203d8fbf0 (patch) | |
tree | 60671d3e96d01a289fe62acca8fe1c3ca1a4bac4 /kernel/capability.c | |
parent | vfio-mdev: remove some dead code (diff) | |
download | linux-19c816e8e455f58da9997e4c6626f06203d8fbf0.tar.xz linux-19c816e8e455f58da9997e4c6626f06203d8fbf0.zip |
capability: export has_capability
has_capability() is sometimes needed by modules to test capability
for specified task other than current, so export it.
Cc: Kirti Wankhede <kwankhede@nvidia.com>
Signed-off-by: Jike Song <jike.song@intel.com>
Acked-by: Serge Hallyn <serge@hallyn.com>
Acked-by: James Morris <james.l.morris@oracle.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'kernel/capability.c')
-rw-r--r-- | kernel/capability.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/capability.c b/kernel/capability.c index a98e814f216f..f97fe77ceb88 100644 --- a/kernel/capability.c +++ b/kernel/capability.c @@ -318,6 +318,7 @@ bool has_capability(struct task_struct *t, int cap) { return has_ns_capability(t, &init_user_ns, cap); } +EXPORT_SYMBOL(has_capability); /** * has_ns_capability_noaudit - Does a task have a capability (unaudited) |