aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/capability.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/capability.c')
-rw-r--r--kernel/capability.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/kernel/capability.c b/kernel/capability.c
index 47626446c39a..74fb3b603045 100644
--- a/kernel/capability.c
+++ b/kernel/capability.c
@@ -409,20 +409,6 @@ bool capable(int cap)
409EXPORT_SYMBOL(capable); 409EXPORT_SYMBOL(capable);
410 410
411/** 411/**
412 * task_ns_capable - Determine whether current task has a superior
413 * capability targeted at a specific task's user namespace.
414 * @t: The task whose user namespace is targeted.
415 * @cap: The capability in question.
416 *
417 * Return true if it does, false otherwise.
418 */
419bool task_ns_capable(struct task_struct *t, int cap)
420{
421 return ns_capable(task_cred_xxx(t, user)->user_ns, cap);
422}
423EXPORT_SYMBOL(task_ns_capable);
424
425/**
426 * nsown_capable - Check superior capability to one's own user_ns 412 * nsown_capable - Check superior capability to one's own user_ns
427 * @cap: The capability in question 413 * @cap: The capability in question
428 * 414 *