summaryrefslogtreecommitdiffstats
path: root/security/tomoyo
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2021-03-26 17:05:25 +0100
committerTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>2021-03-28 06:11:29 +0200
commit4e53d1701b574b1ee9d500b4913a1ece2fac8911 (patch)
tree162d46e8a96aeb9f4250c1b0d073156c9ade00d3 /security/tomoyo
parentMerge tag 'for-5.12/dm-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/... (diff)
downloadlinux-4e53d1701b574b1ee9d500b4913a1ece2fac8911.tar.xz
linux-4e53d1701b574b1ee9d500b4913a1ece2fac8911.zip
tomoyo: don't special case PF_IO_WORKER for PF_KTHREAD
Since commit 3bfe6106693b6b4b ("io-wq: fork worker threads from original task") stopped using PF_KTHREAD flag for the io_uring PF_IO_WORKER threads, tomoyo_kernel_service() no longer needs to check PF_IO_WORKER flag. (This is a 5.12+ patch. Please don't send to stable kernels.) Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Diffstat (limited to 'security/tomoyo')
-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 478f757ff843..8dc61335f65e 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;
}
/**