Thread (22 messages) 22 messages, 5 authors, 2025-05-30

Re: [RFC PATCH 3/9] Loadpol LSM: filter kernel module request according to the policy

From: Randy Dunlap <hidden>
Date: 2025-05-21 16:21:45
Also in: linux-doc, linux-integrity


On 5/21/25 8:47 AM, Casey Schaufler wrote:
On 5/21/2025 7:01 AM, Simon THOBY wrote:
quoted
When a kernel module is loaded, the LSM accepts or rejects the demand
according to its policy.

Signed-off-by: Simon THOBY <redacted>
---
 security/loadpol/Makefile         |  2 +-
 security/loadpol/loadpol.c        | 22 ++++++++++++
 security/loadpol/loadpol.h        | 27 ++++++++++++++
 security/loadpol/loadpol_policy.c | 59 +++++++++++++++++++++++++++++++
 4 files changed, 109 insertions(+), 1 deletion(-)
 create mode 100644 security/loadpol/loadpol_policy.c
quoted
+
+struct loadpol_policy_entry {
+	struct list_head list;
+	// bitfield of policy_entry_origin
The // comment style is not used in the kernel.
Counter:

https://lore.kernel.org/lkml/CA+55aFyQYJerovMsSoSKS7PessZBr4vNp-3QUUwhqk4A4_jcbg@mail.gmail.com/ (local)


-- 
~Randy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help