函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\smack\smackfs.c Create Date:2022-07-27 20:56:24
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:smk_unlbl_ambient - initialize the unlabeled domain*@oldambient: previous domain string

函数原型:static void smk_unlbl_ambient(char *oldambient)

返回类型:void

参数:

类型参数名称
char *oldambient
731  smk_netlabel_audit_set - fill a netlbl_audit struct*@nap: structure to fill
733  如果(oldambient != NULL)则
734  rc等于LSM configuration operations
735  如果rc不等于0则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  如果(This is the "ambient" label for network traffic.* If it isn't somehow marked, use this.* It can be reset via smackfs/ambient == NULL)则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  如果rc不等于0则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
调用者
名称描述
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