函数逻辑报告 |
Source Code:security\smack\smack_access.c |
Create Date:2022-07-27 20:55:00 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:smk_parse_smack - parse smack label from a text string*@string: a text string that might contain a Smack label*@len: the maximum size, or zero if it is NULL terminated.* Returns a pointer to the clean label or an error code.
函数原型:char *smk_parse_smack(const char *string, int len)
返回类型:char
参数:
类型 | 参数 | 名称 |
---|---|---|
const char * | string | |
int | len |
460 | 以i小于len循环如果string[i]大于'~'或string[i]小于等于' '或string[i]恒等于'/'或string[i]恒等于'"'或string[i]恒等于'\\'或string[i]恒等于'\''则 |
463 | 退出 |
465 | 如果i恒等于0或i大于等于SMK_LONGLABEL则返回:错误号 |
474 | 返回:smack |
名称 | 描述 |
---|---|
smk_import_entry | smk_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_fill_rule | smk_fill_rule - Fill Smack rule from strings*@subject: subject label string*@object: object label string*@access1: access string*@access2: string with permissions to be removed*@rule: Smack rule*@import: if non-zero, import labels*@len: label length limit |
smk_write_revoke_subj | smk_write_revoke_subj - write() for /smack/revoke-subject*@file: file pointer*@buf: data from user space*@count: bytes sent*@ppos: where to start - must be 0 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |