]> git.baikalelectronics.ru Git - kernel.git/commit
Smack: Provide read control for io_uring_cmd
authorCasey Schaufler <casey@schaufler-ca.com>
Tue, 23 Aug 2022 23:46:18 +0000 (16:46 -0700)
committerPaul Moore <paul@paul-moore.com>
Fri, 26 Aug 2022 18:56:35 +0000 (14:56 -0400)
commitdd9373402280cf4715fdc8fd5070f7d039e43511
tree35271a64bc505a2df4fc586b043d0939fc3d19fe
parent707527956d90ea4f304188555a97144183af1e49
Smack: Provide read control for io_uring_cmd

Limit io_uring "cmd" options to files for which the caller has
Smack read access. There may be cases where the cmd option may
be closer to a write access than a read, but there is no way
to make that determination.

Cc: stable@vger.kernel.org
Fixes: ee692a21e9bf ("fs,io_uring: add infrastructure for uring-cmd")
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/smack/smack_lsm.c