diff options
author | 2021-04-01 09:39:51 -0700 | |
---|---|---|
committer | 2021-04-01 09:39:51 -0700 | |
commit | 5d17c1ba3ee7271346f459d9015c13e7a5fb2b39 (patch) | |
tree | 75d46bc3cae0df2f18f707cc3d2c798d74b2d2a8 | |
parent | Merge tag 'xarray-5.12' of git://git.infradead.org/users/willy/xarray (diff) | |
parent | tomoyo: don't special case PF_IO_WORKER for PF_KTHREAD (diff) | |
download | wireguard-linux-5d17c1ba3ee7271346f459d9015c13e7a5fb2b39.tar.xz wireguard-linux-5d17c1ba3ee7271346f459d9015c13e7a5fb2b39.zip |
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
Diffstat (limited to '')
-rw-r--r-- | security/tomoyo/network.c | 2 |
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; } /** |