mirror of
https://github.com/torvalds/linux.git
synced 2026-11-20 13:03:48 +00:00
lockdown: move initcalls to the LSM framework
Reviewed-by: Kees Cook <[email protected]> Acked-by: Xiu Jianfeng <[email protected]> Reviewed-by: John Johansen <[email protected]> Signed-off-by: Paul Moore <[email protected]>
This commit is contained in:
@@ -161,8 +161,6 @@ static int __init lockdown_secfs_init(void)
|
||||
return PTR_ERR_OR_ZERO(dentry);
|
||||
}
|
||||
|
||||
core_initcall(lockdown_secfs_init);
|
||||
|
||||
#ifdef CONFIG_SECURITY_LOCKDOWN_LSM_EARLY
|
||||
DEFINE_EARLY_LSM(lockdown) = {
|
||||
#else
|
||||
@@ -170,4 +168,5 @@ DEFINE_LSM(lockdown) = {
|
||||
#endif
|
||||
.id = &lockdown_lsmid,
|
||||
.init = lockdown_lsm_init,
|
||||
.initcall_core = lockdown_secfs_init,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user