函数逻辑报告 |
Source Code:security\smack\smackfs.c |
Create Date:2022-07-27 20:56:37 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:smk_set_cipso - do the work for write() for cipso and cipso2*@file: file pointer, not actually used*@buf: where to get the data from*@count: bytes sent*@ppos: where to start*@format: /smack/cipso or /smack/cipso2
函数原型:static ssize_t smk_set_cipso(struct file *file, const char __user *buf, size_t count, loff_t *ppos, int format)
返回类型:ssize_t
参数:
类型 | 参数 | 名称 |
---|---|---|
struct file * | file | |
const char __user * | buf | |
size_t | count | |
loff_t * | ppos | |
int | format |
841 | char * data = NULL |
855 | 如果format恒等于Fixed 24byte label format 且count小于SMK_CIPSOMIN或count大于SMK_CIPSOMAX的值则返回:负EINVAL |
859 | 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. |
868 | mutex_lock( & List locks) |
870 | skp等于smk_import_entry - import a label, return the list entry*@string: a text string that might be a Smack label*@len: the maximum size, or zero if it is NULL terminated |
871 | 如果是错误则 |
876 | 如果format恒等于Fixed 24byte label format 则rule加等于Smack labels were limited to 23 characters for a long time. |
881 | ret等于sscanf - Unformat a buffer into a list of arguments*@buf: input buffer*@fmt: formatting of buffer*@...: resulting arguments |
882 | 如果ret不等于1或maplevel大于CIPSO 2.2 standard 则转到:out |
885 | rule加等于Values for parsing cipso rules* SMK_DIGITLEN: Length of a digit field in a rule.* SMK_CIPSOMIN: Minimum possible cipso rule length.* SMK_CIPSOMAX: Maximum possible cipso rule length. |
886 | ret等于sscanf - Unformat a buffer into a list of arguments*@buf: input buffer*@fmt: formatting of buffer*@...: resulting arguments |
897 | rule加等于Values for parsing cipso rules* SMK_DIGITLEN: Length of a digit field in a rule.* SMK_CIPSOMIN: Minimum possible cipso rule length.* SMK_CIPSOMAX: Maximum possible cipso rule length. |
906 | 如果rc大于等于0则 |
913 | out : |
915 | 释放内存 |
916 | 返回:rc |
名称 | 描述 |
---|---|
smk_write_cipso | smk_write_cipso - write() for /smack/cipso*@file: file pointer, not actually used*@buf: where to get the data from*@count: bytes sent*@ppos: where to start* Accepts only one cipso rule per write call |
smk_write_cipso2 | smk_write_cipso2 - write() for /smack/cipso2*@file: file pointer, not actually used*@buf: where to get the data from*@count: bytes sent*@ppos: where to start* Accepts only one cipso rule per write call |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |