]> git.baikalelectronics.ru Git - kernel.git/commit
Smack: Brutalist io_uring support
authorCasey Schaufler <casey@schaufler-ca.com>
Fri, 21 May 2021 18:21:16 +0000 (11:21 -0700)
committerPaul Moore <paul@paul-moore.com>
Mon, 20 Sep 2021 02:40:51 +0000 (22:40 -0400)
commit4f19dc3bf25441c015204c917ba37679cbae5837
tree9b47eec297d798926b22e80ce894e23890bd41e9
parent1fcc11f2989da9ffb74ef49cb672f0a83046fc9f
Smack: Brutalist io_uring support

Add Smack privilege checks for io_uring. Use CAP_MAC_OVERRIDE
for the override_creds case and CAP_MAC_ADMIN for creating a
polling thread. These choices are based on conjecture regarding
the intent of the surrounding code.

Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
[PM: make the smack_uring_* funcs static, remove debug code]
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/smack/smack_lsm.c