Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

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")
2047  If err Then Return err
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)
2064  If IS_ERR(dentry) Then
2065  pr_err("selinuxfs: could not lookup null!\n")
2066  err = PTR_ERR(dentry)
2067  dentry = NULL
2070  Return err