函数逻辑报告 |
Source Code:security\tomoyo\securityfs_if.c |
Create Date:2022-07-27 21:15:08 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:moyo_write_self - write() for /sys/kernel/security/tomoyo/self_domain interface
函数原型:static ssize_t tomoyo_write_self(struct file *file, const char __user *buf, size_t count, loff_t *ppos)
返回类型:ssize_t
参数:
类型 | 参数 | 名称 |
---|---|---|
struct file * | file | |
const char __user * | buf | |
size_t | count | |
loff_t * | ppos |
47 | 如果非count或count大于等于TOMOYO_EXEC_TMPSIZE减10则返回:负ENOMEM |
49 | data等于memdup_user_nul - duplicate memory region from user space and NUL-terminate*@src: source address in user space*@len: number of bytes to copy* Return: an ERR_PTR() on failure. |
53 | 如果tomoyo_correct_domain(data)则 |
54 | idx等于moyo_read_lock - Take lock for protecting policy.* Returns index number for tomoyo_read_unlock(). |
59 | tomoyo_fill_path_info( & name) |
63 | domainname等于name |
67 | 否则 |
70 | 如果非new_domain则 |
72 | 否则 |
86 | 释放内存 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |