summaryrefslogtreecommitdiffstats
path: root/security/tomoyo/network.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2017-03-21 02:08:07 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2017-03-28 22:43:25 +0200
commitdb68ce10c4f0a27c1ff9fa0e789e5c41f8c4ea63 (patch)
tree77eda1d247853a2d414e0047c620b3c72bb11a1a /security/tomoyo/network.c
parentadd asm-generic/extable.h (diff)
downloadlinux-db68ce10c4f0a27c1ff9fa0e789e5c41f8c4ea63.tar.xz
linux-db68ce10c4f0a27c1ff9fa0e789e5c41f8c4ea63.zip
new helper: uaccess_kernel()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'security/tomoyo/network.c')
-rw-r--r--security/tomoyo/network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/tomoyo/network.c b/security/tomoyo/network.c
index 97527710a72a..6c02ac478247 100644
--- a/security/tomoyo/network.c
+++ b/security/tomoyo/network.c
@@ -608,7 +608,7 @@ static int tomoyo_check_unix_address(struct sockaddr *addr,
static bool tomoyo_kernel_service(void)
{
/* Nothing to do if I am a kernel service. */
- return segment_eq(get_fs(), KERNEL_DS);
+ return uaccess_kernel();
}
/**