Thread (10 messages) 10 messages, 4 authors, 2025-05-21

Re: [PATCH v17 1/3] lsm, selinux: Add setup_report permission to binder

From: Paul Moore <paul@paul-moore.com>
Date: 2025-05-20 21:16:01
Also in: linux-doc, linux-security-module, lkml, selinux

On Apr 16, 2025 Li Li [off-list ref] wrote:
Introduce a new permission "setup_report" to the "binder" class.
This persmission controls the ability to set up the binder generic
netlink driver to report certain binder transactions.

Signed-off-by: Thiébaud Weksteen <redacted>
Signed-off-by: Li Li <redacted>
---
 include/linux/lsm_hook_defs.h       |  1 +
 include/linux/security.h            |  6 ++++++
 security/security.c                 | 13 +++++++++++++
 security/selinux/hooks.c            |  7 +++++++
 security/selinux/include/classmap.h |  3 ++-
 5 files changed, 29 insertions(+), 1 deletion(-)
When possible, it is helpful to include at least one caller in the patch
which adds a new LSM hook as it helps put the hook in context.  With that
in mind, I think it would be best to reorder this patchset so that patch
2/3 comes first and this patch comes second, with this patch including
the change to binder_nl_report_setup_doit() which adds the call to the
new LSM hook.

--
paul-moore.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help