Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

lockdown: move initcalls to the LSM framework

Reviewed-by: Kees Cook <kees@kernel.org>
Acked-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Reviewed-by: John Johansen <john.johhansen@canonical.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>

+1 -2
+1 -2
security/lockdown/lockdown.c
··· 161 161 return PTR_ERR_OR_ZERO(dentry); 162 162 } 163 163 164 - core_initcall(lockdown_secfs_init); 165 - 166 164 #ifdef CONFIG_SECURITY_LOCKDOWN_LSM_EARLY 167 165 DEFINE_EARLY_LSM(lockdown) = { 168 166 #else ··· 168 170 #endif 169 171 .id = &lockdown_lsmid, 170 172 .init = lockdown_lsm_init, 173 + .initcall_core = lockdown_secfs_init, 171 174 };