Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:smk_unlbl_ambient - initialize the unlabeled domain*@oldambient: previous domain string

Proto:static void smk_unlbl_ambient(char *oldambient)

Type:void

Parameter:

TypeParameterName
char *oldambient
731  smk_netlabel_audit_set - fill a netlbl_audit struct*@nap: structure to fill
733  If (oldambient != NULL) Then
734  rc = LSM configuration operations
735  If rc != 0 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
739  If (This is the "ambient" label for network traffic.* If it isn't somehow marked, use this.* It can be reset via smackfs/ambient == NULL) Then This is the "ambient" label for network traffic.* If it isn't somehow marked, use this.* It can be reset via smackfs/ambient = smack_known_floor
742  rc = netlbl_cfg_unlbl_map_add(smk_known, PF_INET, NULL, NULL, & nai)
744  If rc != 0 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
Caller
NameDescribe
smk_write_ambientsmk_write_ambient - write() for /smack/ambient*@file: file pointer, not actually used*@buf: where to get the data from*@count: bytes sent*@ppos: where to start* Returns number of bytes written or error code, as appropriate
init_smk_fs_smk_fs - get the smackfs superblock* register the smackfs* Do not register smackfs if Smack wasn't enabled* on boot