函数逻辑报告 |
Source Code:security\smack\smackfs.c |
Create Date:2022-07-27 20:57:42 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:smk_write_mapped - write() for /smack/mapped*@file: file pointer, not actually used*@buf: where to get the data from*@count: bytes sent*@ppos: where to start* Returns number of bytes written or error code, as appropriate
函数原型:static ssize_t smk_write_mapped(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 |
1730 | 如果copy_from_user(temp, buf, count)不等于0则返回:负EFAULT |
1735 | 如果sscanf - Unformat a buffer into a list of arguments*@buf: input buffer*@fmt: formatting of buffer*@...: resulting arguments不等于1则返回:负EINVAL |
1744 | mutex_lock( & smack_known_lock) |
1745 | 遍历RCU(skp, & smack_known_list, list) |
1746 | 如果lvl恒等于This is the level in a CIPSO header that indicates a* secid is contained directly in the category set.* It can be reset via smackfs/mapped则lvl等于i |
1753 | 返回:count |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |