Function report |
Source Code:security\selinux\selinuxfs.c |
Create Date:2022-07-28 19:04: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_open_policy
Proto:static int sel_open_policy(struct inode *inode, struct file *filp)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct inode * | inode | |
| struct file * | filp |
| 377 | struct policy_load_memory * plm = NULL |
| 382 | mutex_lock( & mutex) |
| 391 | If policy_opened Then Go to err |
| 395 | plm = 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). |
| 400 | inode_lock(inode) |
| 402 | inode_unlock(inode) |
| 405 | rc = security_read_policy(state, & data, & len) |
| 409 | policy_opened = 1 |
| 415 | Return 0 |
| 416 | err : |
| 422 | Return rc |
| 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 |