[RFC][PATCH 3/5] fsverity: Do initialization earlier

Roberto Sassu
2021-11-12T12:45:02Z

Perform fsverity initialization with core_initcall(), to ensure that
fsverity is available also very early during the boot process.

More specifically, allow files in the rootfs filesystem (from an initial
ram disk) to be protected with fsverity and be checked with LSMs such as
IPE.

Signed-off-by: Roberto Sassu <roberto.sassu@huawei.com>
---
fs/verity/init.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/verity/init.c b/fs/verity/init.c
index c98b7016f446..910083919e1d 100644
--- a/fs/verity/init.c
+++ b/fs/verity/init.c
@@ -58,4 +58,4 @@ static int __init fsverity_init(void)
fsverity_exit_info_cache();
return err;
}
-late_initcall(fsverity_init)
+core_initcall(fsverity_init)
--
2.32.0