Thread (77 messages) flat view 77 messages, 6 authors, 2025-07-28

Re: [RFC PATCH v2 30/34] lockdown: move initcalls to the LSM framework

From: Paul Moore <paul@paul-moore.com>
Date: 2025-07-25 16:51:13
Also in: linux-integrity, selinux

On Fri, Jul 25, 2025 at 4:12 AM Xiu Jianfeng
[off-list ref] wrote:
On 2025/7/22 7:21, Paul Moore wrote:
quoted
Reviewed-by: Kees Cook <kees@kernel.org>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Reviewed-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Thank you for reviewing this patch.  As you are a Lockdown maintainer,
can I change your reviewed-by into an acked-by tag?
quoted
---
 security/lockdown/lockdown.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/security/lockdown/lockdown.c b/security/lockdown/lockdown.c
index 4813f168ff93..8d46886d2cca 100644
--- a/security/lockdown/lockdown.c
+++ b/security/lockdown/lockdown.c
@@ -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,
 };
-- 
paul-moore.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help