函数逻辑报告 |
Source Code:security\tomoyo\network.c |
Create Date:2022-07-27 21:13:58 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:moyo_write_unix_network - Write "struct tomoyo_unix_acl" list.*@param: Pointer to "struct tomoyo_acl_param".* Returns 0 on success, negative value otherwise.
函数原型:int tomoyo_write_unix_network(struct tomoyo_acl_param *param)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct tomoyo_acl_param * | param |
329 | struct tomoyo_unix_acl e = { One of values in "enum tomoyo_acl_entry_type_index". = TOMOYO_TYPE_UNIX_ACL} |
332 | protocol等于tomoyo_read_token(param) |
333 | operation等于tomoyo_read_token(param) |
335 | 以protocol小于TOMOYO checks only SOCK_STREAM, SOCK_DGRAM, SOCK_RAW, SOCK_SEQPACKET.* Therefore, we don't need SOCK_MAX.循环如果非字符串比较则 |
337 | 退出 |
338 | 以type小于TOMOYO_MAX_NETWORK_OPERATION循环如果tomoyo_permstr(operation, String table for socket's operation. [type])则 |
341 | 如果protocol恒等于TOMOYO checks only SOCK_STREAM, SOCK_DGRAM, SOCK_RAW, SOCK_SEQPACKET.* Therefore, we don't need SOCK_MAX.或非Bitmask of values in "enum tomoyo_network_acl_index" 则返回:负EINVAL |
349 | 返回:error |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |