diff options
author | Micah Morton <mortonm@chromium.org> | 2019-01-28 21:30:56 +0100 |
---|---|---|
committer | James Morris <james.morris@microsoft.com> | 2019-01-28 23:06:50 +0100 |
commit | f67e20d20f28048867372209777d136e5ab148cf (patch) | |
tree | 89952a2dcc3309f8222c579242634d0b7bbcc95d /security/safesetid | |
parent | LSM: add SafeSetID module that gates setid calls (diff) | |
download | linux-f67e20d20f28048867372209777d136e5ab148cf.tar.xz linux-f67e20d20f28048867372209777d136e5ab148cf.zip |
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: Micah Morton <mortonm@chromium.org>
Fixed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: James Morris <james.morris@microsoft.com>
Diffstat (limited to 'security/safesetid')
-rw-r--r-- | security/safesetid/lsm.c | 1 |
1 files changed, 1 insertions, 0 deletions
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", }; |