Thread (88 messages) 88 messages, 7 authors, 2019-02-12
STALE2684d

[PATCH] LSM: Add 'name' field for SafeSetID in DEFINE_LSM

From: mortonm@chromium.org
Date: 2019-01-28 20:31:06
Subsystem: safesetid security module, security subsystem, the rest · Maintainers: Micah Morton, Paul Moore, James Morris, "Serge E. Hallyn", Linus Torvalds

From: Micah Morton <mortonm@chromium.org>

Without this, system boot was crashing with:

[0.174285] LSM: Security Framework initializing
[0.175277] BUG: unable to handle kernel NULL pointer dereference
...
[0.176272] Call Trace:
[0.176272]  ordered_lsm_parse+0x112/0x20b
[0.176272]  security_init+0x9b/0x3ab
[0.176272]  start_kernel+0x413/0x479
[0.176272]  secondary_startup_64+0xa4/0xb0

Signed-off-by: Micah Morton <mortonm@chromium.org>
---
 security/safesetid/lsm.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/security/safesetid/lsm.c b/security/safesetid/lsm.c
index 3a2c75ac810c..282a242beb86 100644
--- a/security/safesetid/lsm.c
+++ b/security/safesetid/lsm.c
@@ -274,4 +274,5 @@ static int __init safesetid_security_init(void)
 
 DEFINE_LSM(safesetid_security_init) = {
 	.init = safesetid_security_init,
+	.name = "safesetid",
 };
-- 
2.20.1.495.gaa96b0ce6b-goog
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help