summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2021-03-26 19:05:25 +0300
committerTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>2021-03-28 07:11:29 +0300
commit4e53d1701b574b1ee9d500b4913a1ece2fac8911 (patch)
tree162d46e8a96aeb9f4250c1b0d073156c9ade00d3 /security
parent0f4498cef9f5cd18d7c6639a2a902ec1edc5be4e (diff)
downloadlinux-4e53d1701b574b1ee9d500b4913a1ece2fac8911.tar.xz
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')
-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;
}
/**