Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f67e20d2 authored by Micah Morton's avatar Micah Morton Committed by James Morris
Browse files

LSM: Add 'name' field for SafeSetID in DEFINE_LSM



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: default avatarMicah Morton <mortonm@chromium.org>
Fixed-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarJames Morris <james.morris@microsoft.com>
parent aeca4e2c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -274,4 +274,5 @@ static int __init safesetid_security_init(void)

DEFINE_LSM(safesetid_security_init) = {
	.init = safesetid_security_init,
	.name = "safesetid",
};