From: Gil Cukierman <cukie@google.com>
To: Jens Axboe <axboe@kernel.dk>,
Pavel Begunkov <asml.silence@gmail.com>,
Paul Moore <paul@paul-moore.com>,
James Morris <jmorris@namei.org>,
"Serge E. Hallyn" <serge@hallyn.com>,
Stephen Smalley <stephen.smalley.work@gmail.com>,
Eric Paris <eparis@parisplace.org>
Cc: Gil Cukierman <cukie@google.com>,
kernel-team@android.com, linux-kernel@vger.kernel.org,
io-uring@vger.kernel.org, linux-security-module@vger.kernel.org,
selinux@vger.kernel.org
Subject: [PATCH v1 0/2] Add LSM access controls for io_uring_setup
Date: Mon, 7 Nov 2022 15:57:51 -0500 [thread overview]
Message-ID: <20221107205754.2635439-1-cukie@google.com> (raw)
This patchset provides the changes required for controlling access to
the io_uring_setup system call by LSMs. It does this by adding a new
hook to io_uring. It also provides the SELinux implementation for a new
permission, io_uring { setup }, using the new hook.
This is important because existing io_uring hooks only support limiting
the sharing of credentials and access to the sensitive uring_cmd file
op. Users of LSMs may also want the ability to tightly control which
callers can retrieve an io_uring capable fd from the kernel, which is
needed for all subsequent io_uring operations.
This was tested by running the liburing test suite on a kernel
containing these patches.
Gil Cukierman (2):
lsm,io_uring: add LSM hook for io_uring_setup
selinux: add support for the io_uring setup permission
include/linux/lsm_hook_defs.h | 1 +
include/linux/lsm_hooks.h | 3 +++
include/linux/security.h | 5 +++++
io_uring/io_uring.c | 5 +++++
security/security.c | 4 ++++
security/selinux/hooks.c | 13 +++++++++++++
security/selinux/include/classmap.h | 2 +-
7 files changed, 32 insertions(+), 1 deletion(-)
--
2.38.0.135.g90850a2211-goog
next reply other threads:[~2022-11-07 20:58 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-07 20:57 Gil Cukierman [this message]
2022-11-07 20:57 ` [PATCH v1 1/2] lsm,io_uring: add LSM hook for io_uring_setup Gil Cukierman
2022-11-07 20:57 ` [PATCH v1 2/2] selinux: add support for the io_uring setup permission Gil Cukierman
2022-11-07 21:13 ` [PATCH v1 0/2] Add LSM access controls for io_uring_setup Paul Moore
2022-11-10 17:54 ` Jeffrey Vander Stoep
2022-11-10 21:04 ` Paul Moore
2022-11-14 14:31 ` Joel Granados
2022-11-15 5:39 ` Jeffrey Vander Stoep
2023-08-08 20:40 ` Dmytro Maluka
2023-08-09 0:31 ` Paul Moore
2023-08-09 11:21 ` Dmytro Maluka
2023-08-09 14:49 ` Paul Moore
2023-08-09 17:28 ` Dmytro Maluka
2023-08-10 9:08 ` Dmytro Maluka
2023-08-10 12:27 ` Stephen Smalley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221107205754.2635439-1-cukie@google.com \
--to=cukie@google.com \
--cc=asml.silence@gmail.com \
--cc=axboe@kernel.dk \
--cc=eparis@parisplace.org \
--cc=io-uring@vger.kernel.org \
--cc=jmorris@namei.org \
--cc=kernel-team@android.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-security-module@vger.kernel.org \
--cc=paul@paul-moore.com \
--cc=selinux@vger.kernel.org \
--cc=serge@hallyn.com \
--cc=stephen.smalley.work@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox