From: Jike Song Date: Thu, 12 Jan 2017 08:52:02 +0000 (+0800) Subject: capability: export has_capability X-Git-Tag: v4.10-rc4~16^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=19c816e8e455f58da9997e4c6626f06203d8fbf0;p=platform%2Fkernel%2Flinux-exynos.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)