函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:smk_netlbl_mls - convert a catset to netlabel mls categories*@catset: the Smack categories*@sap: where to put the netlabel categories* Allocates and fills attr.mls* Returns 0 on success, error code on failure.

函数原型:int smk_netlbl_mls(int level, char *catset, struct netlbl_lsm_secattr *sap, int len)

返回类型:int

参数:

类型参数名称
intlevel
char *catset
struct netlbl_lsm_secattr *sap
intlen
494  flags或等于NETLBL_SECATTR_MLS_CAT
495  lvl等于level
496  cat = NULL
498 byte小于len循环m不等于0循环
500  如果m按位与cp的值恒等于0则继续下一循环
502  rc等于netlbl_catmap_setbit( & cat, cat, GFP_NOFS)
504  如果rc小于0则
506  返回:rc
510  返回:0
调用者
名称描述
smk_import_entrysmk_import_entry - import a label, return the list entry*@string: a text string that might be a Smack label*@len: the maximum size, or zero if it is NULL terminated
smk_set_cipsosmk_set_cipso - do the work for write() for cipso and cipso2*@file: file pointer, not actually used*@buf: where to get the data from*@count: bytes sent*@ppos: where to start*@format: /smack/cipso or /smack/cipso2
smk_preset_netlabel