]> git.baikalelectronics.ru Git - kernel.git/commit
io-wq: inherit audit loginuid and sessionid
authorJens Axboe <axboe@kernel.dk>
Thu, 15 Oct 2020 19:46:44 +0000 (13:46 -0600)
committerJens Axboe <axboe@kernel.dk>
Sat, 17 Oct 2020 15:25:47 +0000 (09:25 -0600)
commitee64980f21e234ff036bf76e592a8920bd7b9eb0
treee041b64e9f8841fdbaf28120171f32c64f42247b
parent249345578fea2aceb51c1e6dee33621f37cdc931
io-wq: inherit audit loginuid and sessionid

Make sure the async io-wq workers inherit the loginuid and sessionid from
the original task, and restore them to unset once we're done with the
async work item.

While at it, disable the ability for kernel threads to write to their own
loginuid.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io-wq.c
fs/io_uring.c
fs/proc/base.c
include/linux/io_uring.h