Function report |
Source Code:security\selinux\selinuxfs.c |
Create Date:2022-07-28 19:06:01 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:sel_commit_bools_write
Proto:static ssize_t sel_commit_bools_write(struct file *filep, const char __user *buf, size_t count, loff_t *ppos)
Type:ssize_t
Parameter:
Type | Parameter | Name |
---|---|---|
struct file * | filep | |
const char __user * | buf | |
size_t | count | |
loff_t * | ppos |
1267 | char * page = NULL |
1278 | page = 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. |
1282 | mutex_lock( & mutex) |
1292 | If sscanf - Unformat a buffer into a list of arguments*@buf: input buffer*@fmt: formatting of buffer*@...: resulting arguments != 1 Then Go to out |
1295 | length = 0 |
1296 | If new_value && bool_pending_values Then length = security_set_bools(state, bool_num, bool_pending_values) |
1303 | out : |
1306 | 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 |