函数逻辑报告 |
Source Code:security\tomoyo\common.c |
Create Date:2022-07-27 21:04:22 |
Last Modify:2020-03-18 09:15:18 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:moyo_write_domain2 - Write domain policy.*@ns: Pointer to "struct tomoyo_policy_namespace".*@list: Pointer to "struct list_head".*@data: Policy to be interpreted.*@is_delete: True if it is a delete request.* Returns 0 on success, negative value otherwise.
函数原型:static int tomoyo_write_domain2(struct tomoyo_policy_namespace *ns, struct list_head *list, char *data, const bool is_delete)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct tomoyo_policy_namespace * | ns | |
struct list_head * | list | |
char * | data | |
const bool | is_delete |
1136 | static const struct{const char * keyword;int( * write)(struct tomoyo_acl_param * param)}tomoyo_callback[5] = {{"file ", tomoyo_write_file}, {"network inet ", moyo_write_inet_network - Write "struct tomoyo_inet_acl" list.*@param: Pointer to "struct tomoyo_acl_param".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock().}, {"network unix ", tomoyo_write_unix_network}, {"misc ", tomoyo_write_misc}, {"task ", moyo_write_task - Update task related list.*@param: Pointer to "struct tomoyo_acl_param".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock().}, } |
1149 | 如果非tomoyo_str_starts( & data, keyword)则继续下一循环 |
1154 | 返回:负EINVAL |
名称 | 描述 |
---|---|
tomoyo_write_domain | moyo_write_domain - Write domain policy.*@head: Pointer to "struct tomoyo_io_buffer".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock(). |
tomoyo_write_exception | moyo_write_exception - Write exception policy.*@head: Pointer to "struct tomoyo_io_buffer".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock(). |
tomoyo_add_entry | moyo_add_entry - Add an ACL to current thread's domain. Used by learning mode.*@domain: Pointer to "struct tomoyo_domain_info".*@header: Lines containing ACL.* Returns nothing. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |