summaryrefslogtreecommitdiffstats
path: root/security/tomoyo/common.c
diff options
context:
space:
mode:
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>2021-02-01 03:53:05 +0100
committerTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>2021-02-01 03:53:05 +0100
commit9c83465f3245c2faa82ffeb7016f40f02bfaa0ad (patch)
tree2eeddbaf52a3a3e3233ffec28e8deecddd0c8195 /security/tomoyo/common.c
parenttomoyo: ignore data race while checking quota (diff)
downloadlinux-9c83465f3245c2faa82ffeb7016f40f02bfaa0ad.tar.xz
linux-9c83465f3245c2faa82ffeb7016f40f02bfaa0ad.zip
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>
Diffstat (limited to 'security/tomoyo/common.c')
0 files changed, 0 insertions, 0 deletions