tomoyo: don't special case PF_IO_WORKER for PF_KTHREAD
Subsystems (2)
PATCH 1/1 tomoyo: don't special case PF_IO_WORKER for PF_KTHREAD
The io_uring PF_IO_WORKER threads no longer have PF_KTHREAD set, so no need to special case them for credential checks.
Cc Tetsuo Handa <[email protected]>
Signed-off-by Jens Axboe <[email protected]>
--- security/tomoyo/network.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
security/tomoyo/network.c +1 -1
@@ -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 ; }/**
Signature · 4 lines
2.31.0 -- Jens Axboe
Quoted 2 lines · Jens Axboe
The
io_uringPF_IO_WORKERthreads no longer havePF_KTHREADset, so no need to special case them for credential checks.
Could you cite the commit where that change was made?
Quoted 20 lines
Cc Tetsuo Handa <[email protected]>Signed-off-by Jens Axboe <[email protected]>--- security/tomoyo/network.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)security/tomoyo/network.c +1
-1@@ -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 ; }/**
Quoted 5 lines · Casey Schaufler
Quoted 2 lines · Jens Axboe
The
io_uringPF_IO_WORKERthreads no longer havePF_KTHREADset, so no need to special case them for credential checks.Could you cite the commit where that change was made?
See previous reply, same one:
commit 3bfe6106693b6b4ba175ad1f929c4660b8f59ca8
Author: Jens Axboe <[email protected]> Date: Tue Feb 16 14:15:30 2021 -0700
io-wq: fork worker threads from original task
Signature · 1 line
Jens Axboe