Function report | 
Source Code:security\lsm_audit.c | 
Create Date:2022-07-28 19:30:35 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:pv4_skb_to_auditdata : fill auditdata from skb*@skb : the skb*@ad : the audit data to fill*@proto : the layer 4 protocol* return 0 on success
Proto:int ipv4_skb_to_auditdata(struct sk_buff *skb, struct common_audit_data *ad, u8 *proto)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct sk_buff * | skb | |
| struct common_audit_data * | ad | |
| u8 * | proto | 
| 42 | ret = 0 | 
| 55 | If ntohs(frag_off) & "Fragment Offset" part Then Return 0 | 
| 59 | Case protocol == IPPROTO_TCP | 
| 68 | Case protocol == IPPROTO_UDP | 
| 77 | Case protocol == IPPROTO_DCCP | 
| 86 | Case protocol == IPPROTO_SCTP | 
| 94 | Default | 
| 97 | Return ret | 
| Name | Describe | 
|---|---|
| smack_inet_conn_request | smack_inet_conn_request - Smack access check on connect*@sk: socket involved*@skb: packet*@req: unused* Returns 0 if a task with the packet label could write to* the socket, otherwise an error code | 
| smack_socket_sock_rcv_skb | smack_socket_sock_rcv_skb - Smack packet delivery access check*@sk: socket*@skb: packet* Returns 0 if the packet should be delivered, an error code otherwise | 
| 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  |