summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJike Song <jike.song@intel.com>2017-01-12 16:52:02 +0800
committerAlex Williamson <alex.williamson@redhat.com>2017-01-12 07:01:56 -0700
commit19c816e8e455f58da9997e4c6626f06203d8fbf0 (patch)
tree60671d3e96d01a289fe62acca8fe1c3ca1a4bac4
parent73da4268fdbae972f617946d1c690f2136964802 (diff)
downloadlinux-19c816e8e455f58da9997e4c6626f06203d8fbf0.tar.bz2
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>
-rw-r--r--kernel/capability.c1
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)