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

Configure Feed

Select the types of activity you want to include in your feed.

ipe: move initcalls to the LSM framework

Reviewed-by: Kees Cook <kees@kernel.org>
Tested-by: Fan Wu <wufan@kernel.org>
Acked-by: Fan Wu <wufan@kernel.org>
Reviewed-by: John Johansen <john.johhansen@canonical.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>

+4 -3
+1 -3
security/ipe/fs.c
··· 193 193 * Return: %0 on success. If an error occurs, the function will return 194 194 * the -errno. 195 195 */ 196 - static int __init ipe_init_securityfs(void) 196 + int __init ipe_init_securityfs(void) 197 197 { 198 198 int rc = 0; 199 199 struct ipe_policy *ap; ··· 244 244 securityfs_remove(root); 245 245 return rc; 246 246 } 247 - 248 - fs_initcall(ipe_init_securityfs);
+1
security/ipe/ipe.c
··· 95 95 .id = &ipe_lsmid, 96 96 .init = ipe_init, 97 97 .blobs = &ipe_blobs, 98 + .initcall_fs = ipe_init_securityfs, 98 99 };
+2
security/ipe/ipe.h
··· 23 23 struct ipe_inode *ipe_inode(const struct inode *inode); 24 24 #endif /* CONFIG_IPE_PROP_FS_VERITY_BUILTIN_SIG */ 25 25 26 + int ipe_init_securityfs(void); 27 + 26 28 #endif /* _IPE_H */