函数逻辑报告 |
Source Code:security\selinux\selinuxfs.c |
Create Date:2022-07-27 20:36:15 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:sel_write_validatetrans
函数原型:static ssize_t sel_write_validatetrans(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 |
684 | char * req = NULL |
704 | req等于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. |
705 | 如果是错误则 |
725 | 如果sscanf - Unformat a buffer into a list of arguments*@buf: input buffer*@fmt: formatting of buffer*@...: resulting arguments不等于4则转到:out |
728 | rc等于security_context_str_to_sid(state, oldcon, & osid, GFP_KERNEL) |
732 | rc等于security_context_str_to_sid(state, newcon, & nsid, GFP_KERNEL) |
736 | rc等于security_context_str_to_sid(state, taskcon, & tsid, GFP_KERNEL) |
743 | out : |
744 | 释放内存 |
745 | 释放内存 |
746 | 释放内存 |
747 | 释放内存 |
748 | 返回:rc |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |