aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2021-04-01 09:39:51 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2021-04-01 09:39:51 -0700
commit5d17c1ba3ee7271346f459d9015c13e7a5fb2b39 (patch)
tree75d46bc3cae0df2f18f707cc3d2c798d74b2d2a8
parente8d1895883da8048266a7da43b0a381588dca87d (diff)
parent4e53d1701b574b1ee9d500b4913a1ece2fac8911 (diff)
downloadkernfs-5d17c1ba3ee7271346f459d9015c13e7a5fb2b39.tar.gz
Merge tag 'tomoyo-pr-20210401' of git://git.osdn.net/gitroot/tomoyo/tomoyo-test1
Pull tomory fix from Tetsuo Handa: "An update on 'tomoyo: recognize kernel threads correctly' from Jens Axboe to not special case PF_IO_WORKER for PF_KTHREAD" * tag 'tomoyo-pr-20210401' of git://git.osdn.net/gitroot/tomoyo/tomoyo-test1: tomoyo: don't special case PF_IO_WORKER for PF_KTHREAD
-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 478f757ff8435e..8dc61335f65e15 100644
--- a/security/tomoyo/network.c
+++ b/security/tomoyo/network.c
@@ -613,7 +613,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 (current->flags & (PF_KTHREAD | PF_IO_WORKER)) == PF_KTHREAD;
+ return current->flags & PF_KTHREAD;
}
/**