函数逻辑报告 |
Source Code:security\tomoyo\network.c |
Create Date:2022-07-27 21:14:18 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:moyo_unix_entry - Check permission for UNIX network operation.*@address: Pointer to "struct tomoyo_addr_info".* Returns 0 on success, negative value otherwise.
函数原型:static int tomoyo_unix_entry(const struct tomoyo_addr_info *address)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
const struct tomoyo_addr_info * | address |
546 | idx等于moyo_read_lock - Take lock for protecting policy.* Returns index number for tomoyo_read_unlock(). |
548 | error等于0 |
549 | type等于Mapping table from "enum tomoyo_network_acl_index" to* "enum tomoyo_mac_index" for unix domain socket.[protocol][operation] |
551 | 如果type且tomoyo_init_request_info( & r, NULL, type)不等于TOMOYO_CONFIG_DISABLED则 |
554 | len等于addr_len减sizeof(sa_family_t) |
556 | 如果len小于等于0则 |
559 | 否则如果buf[0]则 |
562 | buf等于tomoyo_encode2(buf, len) |
563 | 如果buf则 |
581 | 返回:error |
名称 | 描述 |
---|---|
tomoyo_check_unix_address | moyo_check_unix_address - Check permission for unix domain socket's operation.*@addr: Pointer to "struct sockaddr".*@addr_len: Size of @addr.*@address: Pointer to "struct tomoyo_addr_info".* Returns 0 on success, negative value otherwise. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |