函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:smk_cipso_doi - initialize the CIPSO domain

函数原型:static void smk_cipso_doi(void)

返回类型:void

参数:

689  smk_netlabel_audit_set - fill a netlbl_audit struct*@nap: structure to fill
691  rc等于LSM configuration operations
692  如果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
696  doip等于开辟内存
697  如果(doip == NULL)则panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.
699  std = NULL
700  doi等于smk_cipso_doi_value
701  type等于CIPSO_V4_MAP_PASS
702  tags[0]等于CIPSO_V4_TAG_RBITMAP
703 rc小于DOI definition struct 循环tags[rc]等于standard tag types
706  rc等于netlbl_cfg_cipsov4_add(doip, & nai)
707  如果rc不等于0则
708  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
710  释放内存
711  返回
713  rc等于netlbl_cfg_cipsov4_map_add(doi, NULL, NULL, NULL, & nai)
714  如果rc不等于0则
715  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
717  释放内存
718  返回
调用者
名称描述
smk_write_doismk_write_doi - write() for /smack/doi*@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