summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-01-13 17:35:43 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2017-01-13 17:35:43 -0800
commitaf54efa4f5275b0594da50c68bfa8159a8cda0f5 (patch)
treecf19e2656d42965ea62646c8fd17b58172d86551 /kernel
parent406732c932d47715395345ba036a3d58341cad55 (diff)
parent94a6fa899d2cb5ee76933406df32996576a562e4 (diff)
downloadlinux-af54efa4f5275b0594da50c68bfa8159a8cda0f5.tar.bz2
Merge tag 'vfio-v4.10-rc4' of git://github.com/awilliam/linux-vfio
Pull VFIO fixes from Alex Williamson: - Cleanups and bug fixes for the mtty sample driver (Dan Carpenter) - Export and make use of has_capability() to fix incorrect use of ns_capable() for testing task capabilities (Jike Song) * tag 'vfio-v4.10-rc4' of git://github.com/awilliam/linux-vfio: vfio/type1: Remove pid_namespace.h include vfio iommu type1: fix the testing of capability for remote task capability: export has_capability vfio-mdev: remove some dead code vfio-mdev: buffer overflow in ioctl() vfio-mdev: return -EFAULT if copy_to_user() fails
Diffstat (limited to 'kernel')
-rw-r--r--kernel/capability.c1
1 files changed, 1 insertions, 0 deletions
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)