提交 19c816e8 编写于 作者: J Jike Song 提交者: Alex Williamson

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: NJike Song <jike.song@intel.com>
Acked-by: NSerge Hallyn <serge@hallyn.com>
Acked-by: NJames Morris <james.l.morris@oracle.com>
Signed-off-by: NAlex Williamson <alex.williamson@redhat.com>
上级 73da4268
...@@ -318,6 +318,7 @@ bool has_capability(struct task_struct *t, int cap) ...@@ -318,6 +318,7 @@ bool has_capability(struct task_struct *t, int cap)
{ {
return has_ns_capability(t, &init_user_ns, 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) * has_ns_capability_noaudit - Does a task have a capability (unaudited)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册