Function report |
Source Code:security\selinux\selinuxfs.c |
Create Date:2022-07-28 19:05:49 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:sel_read_bool
Proto:static ssize_t sel_read_bool(struct file *filep, char __user *buf, size_t count, loff_t *ppos)
Type:ssize_t
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct file * | filep | |
| char __user * | buf | |
| size_t | count | |
| loff_t * | ppos |
| 1168 | char * page = NULL |
| 1175 | mutex_lock( & mutex) |
| 1178 | If index >= bool_num || strcmp(name, bool_pending_names[index]) Then Go to out_unlock |
| 1183 | page = get_zeroed_page(GFP_KERNEL) |
| 1184 | If Not page Then Go to out_unlock |
| 1187 | cur_enforcing = security_get_bool_value(state, index) |
| 1188 | If cur_enforcing < 0 Then |
| 1189 | ret = cur_enforcing |
| 1190 | Go to out_unlock |
| 1196 | out_free : |
| 1198 | Return ret |
| 1200 | out_unlock : |
| 1202 | Go to out_free |
| 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 |