diff options
author | Jens Axboe | 2019-11-25 08:52:30 -0700 |
---|---|---|
committer | Jens Axboe | 2019-11-25 19:56:11 -0700 |
commit | 181e448d8709e517c9c7b523fcd209f24eb38ca7 (patch) | |
tree | 0245d1dc6356bd397fb604a28b5f9f716060b37f /fs/io-wq.h | |
parent | 576a347b7af8abfbddc80783fb6629c2894d036e (diff) |
io_uring: async workers should inherit the user creds
If we don't inherit the original task creds, then we can confuse users
like fuse that pass creds in the request header. See link below on
identical aio issue.
Link: https://lore.kernel.org/linux-fsdevel/26f0d78e-99ca-2f1b-78b9-433088053a61@scylladb.com/T/#u
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/io-wq.h')
-rw-r--r-- | fs/io-wq.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/io-wq.h b/fs/io-wq.h index bb8f1c8f8e24..5cd8c7697e88 100644 --- a/fs/io-wq.h +++ b/fs/io-wq.h @@ -45,6 +45,7 @@ typedef void (put_work_fn)(struct io_wq_work *); struct io_wq_data { struct mm_struct *mm; struct user_struct *user; + struct cred *creds; get_work_fn *get_work; put_work_fn *put_work; |