Function report |
Source Code:security\selinux\selinuxfs.c |
Create Date:2022-07-28 19:07:24 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:init_sel_fs
Proto:static int __init init_sel_fs(void)
Type:int
Parameter:Nothing
2039 | null_name = QSTR_INIT(NULL_FILE_NAME, size of NULL_FILE_NAME - 1) |
2043 | If Not selinux_enabled Then Return 0 |
2046 | err = sysfs_create_mount_point(/sys/fs , "selinux") |
2050 | err = register_filesystem( & sel_fs_type) |
2051 | If err Then |
2052 | sysfs_remove_mount_point(/sys/fs , "selinux") |
2053 | Return err |
2056 | mnt = selinuxfs_mount = kern_mount( & sel_fs_type) |
2057 | If IS_ERR(selinuxfs_mount) Then |
2058 | pr_err("selinuxfs: could not mount!\n") |
2059 | err = PTR_ERR(selinuxfs_mount) |
2060 | selinuxfs_mount = NULL |
2062 | dentry = d_hash_and_lookup(mnt_root, & null_name) |
2070 | Return err |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |