diff options
author | Jens Axboe <axboe@kernel.dk> | 2020-10-15 13:46:44 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-10-17 09:25:47 -0600 |
commit | 4ea33a976bfe79293965d0815e1914e4b6e58967 (patch) | |
tree | e041b64e9f8841fdbaf28120171f32c64f42247b /include/linux/io_uring.h | |
parent | d8a6df10aac9f2e4d5f30aff3129d552d2984ce7 (diff) |
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>
Diffstat (limited to 'include/linux/io_uring.h')
-rw-r--r-- | include/linux/io_uring.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/io_uring.h b/include/linux/io_uring.h index 28939820b6b0..868364cea3b7 100644 --- a/include/linux/io_uring.h +++ b/include/linux/io_uring.h @@ -15,6 +15,10 @@ struct io_identity { struct nsproxy *nsproxy; struct fs_struct *fs; unsigned long fsize; +#ifdef CONFIG_AUDIT + kuid_t loginuid; + unsigned int sessionid; +#endif refcount_t count; }; |