blob: c88040e594bd186b77e1743575d24065f45cf8ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/fs.h>
static struct file_system_type etc_fs_type = {
.name = "etcfs",
.f_flasgs = FS_USERNS_MOUNT,
};
static int __init etcfs_init(void) {
int err;
err = register_filesystem(etcfs);
if (err) {
return err;
}
return 0;
}
static int __exit etcfs_exit(void) {
return 0;
}
module_init(etcfs_init);
module_exit(etcfs_exit);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("c4llv07e <igor@c4llv07e.xyz>");
MODULE_DESCRIPTION("Read-only preconfigured etc filesystem");
|