Skip to content

Commit

Permalink
capability: export has_capability
Browse files Browse the repository at this point in the history
has_capability() is sometimes needed by modules to test capability
for specified task other than current, so export it.

Cc: Kirti Wankhede <[email protected]>
Signed-off-by: Jike Song <[email protected]>
Acked-by: Serge Hallyn <[email protected]>
Acked-by: James Morris <[email protected]>
Signed-off-by: Alex Williamson <[email protected]>
  • Loading branch information
l1viathan authored and awilliam committed Jan 12, 2017
1 parent 73da426 commit 19c816e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/capability.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 19c816e

Please sign in to comment.