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)
commit4ea33a976bfe79293965d0815e1914e4b6e58967
treee041b64e9f8841fdbaf28120171f32c64f42247b
parentd8a6df10aac9f2e4d5f30aff3129d552d2984ce7
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