Function report |
Source Code:security\selinux\selinuxfs.c |
Create Date:2022-07-28 19:04:30 |
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_load
Proto:static ssize_t sel_write_load(struct file *file, const char __user *buf, size_t count, loff_t *ppos)
Type:ssize_t
Parameter:
Type | Parameter | Name |
---|---|---|
struct file * | file | |
const char __user * | buf | |
size_t | count | |
loff_t * | ppos |
536 | void * data = NULL |
538 | mutex_lock( & mutex) |
557 | If copy_from_user(data, buf, count) != 0 Then Go to out |
560 | length = security_load_policy(state, data, count) |
561 | If length Then |
562 | pr_warn_ratelimited("SELinux: failed to load policy\n") |
563 | Go to out |
566 | length = sel_make_policy_nodes(fsi) |
572 | out1 : |
577 | out : |
580 | 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 |