]> git.itanic.dy.fi Git - linux-stable/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Sep 2022 08:47:18 +0000 (10:47 +0200)
commit37a0883c582420c13696ba33426d298a49f07cd1
tree93030dcc65edb857a5224fcd5d1b85029126a533
parent2ad39828ee35c87e9a7eff735a4fc1ef90ba863a
Smack: Provide read control for io_uring_cmd

commit dd9373402280cf4715fdc8fd5070f7d039e43511 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
security/smack/smack_lsm.c