[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20211112124411.1948809-4-roberto.sassu@huawei.com>
Date: Fri, 12 Nov 2021 13:44:09 +0100
From: Roberto Sassu <roberto.sassu@...wei.com>
To: <ebiggers@...nel.org>, <tytso@....edu>, <corbet@....net>,
<viro@...iv.linux.org.uk>, <hughd@...gle.com>,
<akpm@...ux-foundation.org>
CC: <linux-fscrypt@...r.kernel.org>, <linux-doc@...r.kernel.org>,
<linux-fsdevel@...r.kernel.org>, <linux-mm@...ck.org>,
<linux-integrity@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
Roberto Sassu <roberto.sassu@...wei.com>
Subject: [RFC][PATCH 3/5] fsverity: Do initialization earlier
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@...wei.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
Powered by blists - more mailing lists