Commit d934f97d authored by Paul Moore's avatar Paul Moore
Browse files

ipe: move initcalls to the LSM framework

parent b0374e79
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -193,7 +193,7 @@ static const struct file_operations enforce_fops = {
 * Return: %0 on success. If an error occurs, the function will return
 * the -errno.
 */
static int __init ipe_init_securityfs(void)
int __init ipe_init_securityfs(void)
{
	int rc = 0;
	struct ipe_policy *ap;
@@ -244,5 +244,3 @@ static int __init ipe_init_securityfs(void)
	securityfs_remove(root);
	return rc;
}

fs_initcall(ipe_init_securityfs);
+1 −0
Original line number Diff line number Diff line
@@ -95,4 +95,5 @@ DEFINE_LSM(ipe) = {
	.id = &ipe_lsmid,
	.init = ipe_init,
	.blobs = &ipe_blobs,
	.initcall_fs = ipe_init_securityfs,
};
+2 −0
Original line number Diff line number Diff line
@@ -23,4 +23,6 @@ struct ipe_bdev *ipe_bdev(struct block_device *b);
struct ipe_inode *ipe_inode(const struct inode *inode);
#endif /* CONFIG_IPE_PROP_FS_VERITY_BUILTIN_SIG */

int ipe_init_securityfs(void);

#endif /* _IPE_H */