]> git.baikalelectronics.ru Git - kernel.git/commit
Smack: Handle io_uring kernel thread privileges
authorCasey Schaufler <casey@schaufler-ca.com>
Tue, 22 Dec 2020 23:34:24 +0000 (15:34 -0800)
committerCasey Schaufler <casey@schaufler-ca.com>
Tue, 22 Dec 2020 23:34:24 +0000 (15:34 -0800)
commit34ce4b51842c4ac24011b31e2bf1f34cee9b368b
tree2bfffd5812fb64ccb43da0308773525dfda99277
parent3ea846ba2ba82ad8d39d27e58429d8ccc8644acf
Smack: Handle io_uring kernel thread privileges

Smack assumes that kernel threads are privileged for smackfs
operations. This was necessary because the credential of the
kernel thread was not related to a user operation. With io_uring
the credential does reflect a user's rights and can be used.

Suggested-by: Jens Axboe <axboe@kernel.dk>
Acked-by: Jens Axboe <axboe@kernel.dk>
Acked-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
security/smack/smack_access.c