Function report |
Source Code:security\selinux\selinuxfs.c |
Create Date:2022-07-28 19:05:32 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:sel_write_user
Proto:static ssize_t sel_write_user(struct file *file, char *buf, size_t size)
Type:ssize_t
Parameter:
Type | Parameter | Name |
---|---|---|
struct file * | file | |
char * | buf | |
size_t | size |
1043 | con = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc). |
1048 | user = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc). |
1053 | If sscanf - Unformat a buffer into a list of arguments*@buf: input buffer*@fmt: formatting of buffer*@...: resulting arguments != 2 Then Go to out |
1056 | length = security_context_str_to_sid(state, con, & sid, GFP_KERNEL) |
1068 | If rc Then |
1072 | If length + len >= SIMPLE_TRANSACTION_LIMIT Then |
1082 | out : |
1086 | Return length |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |