Function report | 
Source Code:security\apparmor\lsm.c | 
Create Date:2022-07-28 19:53:07 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:apparmor_socket_create - check perms before creating a new socket
Proto:static int apparmor_socket_create(int family, int type, int protocol, int kern)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| int | family | |
| int | type | |
| int | protocol | |
| int | kern | 
| 817 | error = 0 | 
| 819 | AA_BUG(in_interrupt()) | 
| 822 | If Not (kern || unconfined(label)) Then error = af_select(family, create_perm(label, family, type, protocol), aa_af_perm(label, OP_CREATE, AA_MAY_CREATE, family, type, protocol)) | 
| 829 | Return error | 
| 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  |