Function report |
Source Code:security\selinux\selinuxfs.c |
Create Date:2022-07-28 19:05:15 |
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_create
Proto:static ssize_t sel_write_create(struct file *file, char *buf, size_t size)
Type:ssize_t
Parameter:
Type | Parameter | Name |
---|---|---|
struct file * | file | |
char * | buf | |
size_t | size |
868 | char * newcon = NULL |
880 | scon = 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). |
885 | tcon = 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). |
890 | namebuf = 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). |
895 | nargs = sscanf - Unformat a buffer into a list of arguments*@buf: input buffer*@fmt: formatting of buffer*@...: resulting arguments |
898 | If nargs == 4 Then |
910 | Do |
914 | Else if c1 == '%' Then |
915 | c1 = hex_to_bin - convert a hex digit to its real value*@ch: ascii character represents hex digit* hex_to_bin() converts one hex digit to its actual value or -1 in case of bad* input. |
929 | length = security_context_str_to_sid(state, scon, & ssid, GFP_KERNEL) |
933 | length = security_context_str_to_sid(state, tcon, & tsid, GFP_KERNEL) |
947 | If len > SIMPLE_TRANSACTION_LIMIT Then |
955 | out : |
960 | 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 |