Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\smack\smackfs.c Create Date:2022-07-28 19:29:43
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:_smk_fs - get the smackfs superblock* register the smackfs* Do not register smackfs if Smack wasn't enabled* on boot

Proto:static int __init init_smk_fs(void)

Type:int

Parameter:Nothing

2957  If smack_enabled == 0 Then Return 0
2960  err = smk_init_sysfs - initialize /sys/fs/smackfs
2961  If err Then printk - print a kernel message*@fmt: format string* This is printk(). It can be called from any context. We want it to work.* We try to grab the console_lock. If we succeed, it's easy - we log the* output and call the console drivers
2964  err = register_filesystem( & smk_fs_type)
2965  If Not err Then
2966  smackfs_mount = kern_mount( & smk_fs_type)
2967  If IS_ERR(smackfs_mount) Then
2970  smackfs_mount = NULL
2974  smk_cipso_doi - initialize the CIPSO domain
2975  smk_unlbl_ambient - initialize the unlabeled domain*@oldambient: previous domain string
2977  rc = smk_preset_netlabel( & smack_known_floor)
2978  If err == 0 && rc < 0 Then err = rc
2980  rc = smk_preset_netlabel( & smack_known_hat)
2981  If err == 0 && rc < 0 Then err = rc
2983  rc = smk_preset_netlabel( & smack_known_huh)
2984  If err == 0 && rc < 0 Then err = rc
2986  rc = smk_preset_netlabel( & smack_known_star)
2987  If err == 0 && rc < 0 Then err = rc
2989  rc = smk_preset_netlabel( & smack_known_web)
2990  If err == 0 && rc < 0 Then err = rc
2993  Return err