Source
6
6
* This program is free software; you can redistribute it and/or
7
7
* modify it under the terms of the GNU General Public License version
8
8
* 2 as published by the Free Software Foundation.
9
9
*
10
10
* Based on fs/debugfs/inode.c which had the following copyright notice:
11
11
* Copyright (C) 2004 Greg Kroah-Hartman <greg@kroah.com>
12
12
* Copyright (C) 2004 IBM Inc.
13
13
*/
14
14
15
15
/* #define DEBUG */
16
-
#include <linux/module.h>
16
+
#include <linux/sysfs.h>
17
+
#include <linux/kobject.h>
17
18
#include <linux/fs.h>
18
19
#include <linux/mount.h>
19
20
#include <linux/pagemap.h>
20
21
#include <linux/init.h>
21
22
#include <linux/namei.h>
22
23
#include <linux/security.h>
23
24
#include <linux/lsm_hooks.h>
24
25
#include <linux/magic.h>
25
26
26
27
static struct vfsmount *mount;
334
335
if (retval) {
335
336
sysfs_remove_mount_point(kernel_kobj, "security");
336
337
return retval;
337
338
}
338
339
#ifdef CONFIG_SECURITY
339
340
lsm_dentry = securityfs_create_file("lsm", 0444, NULL, NULL,
340
341
&lsm_ops);
341
342
#endif
342
343
return 0;
343
344
}
344
-
345
345
core_initcall(securityfs_init);
346
-
MODULE_LICENSE("GPL");
347
-