Tetsuo Handa 9c83465f32 tomoyo: recognize kernel threads correctly
Commit db68ce10c4f0a27c ("new helper: uaccess_kernel()") replaced
segment_eq(get_fs(), KERNEL_DS) with uaccess_kernel(). But the correct
method for tomoyo to check whether current is a kernel thread in order
to assume that kernel threads are privileged for socket operations was
(current->flags & PF_KTHREAD). Now that uaccess_kernel() became 0 on x86,
tomoyo has to fix this problem. Do like commit 942cb357ae7d9249 ("Smack:
Handle io_uring kernel thread privileges") does.

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
2021-02-01 11:53:05 +09:00
..
2020-12-06 13:44:57 +09:00
2020-12-06 13:44:57 +09:00
2020-07-21 08:24:52 -05:00
2020-12-06 13:44:57 +09:00
2020-12-06 13:44:57 +09:00
2020-12-06 13:44:57 +09:00
2019-01-24 14:50:27 -08:00
2020-11-27 19:36:11 +09:00
2019-01-24 14:50:27 -08:00
2020-07-21 08:24:52 -05:00