From: Jike Song Date: Thu, 12 Jan 2017 08:52:02 +0000 (+0800) Subject: capability: export has_capability X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=19c816e8e455f58da9997e4c6626f06203d8fbf0;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Jike Song Acked-by: Serge Hallyn Acked-by: James Morris Signed-off-by: Alex Williamson --- 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)