| Function report | 
| Source Code: security\selinux\netlabel.c | Create Date:2022-07-28 19:17:54 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:selinux_netlbl_socket_connect_helper - Help label a client-side socket on* connect*@sk: the socket to label*@addr: the destination address* Description:* Attempt to label a connected socket with NetLabel using the given address.
Proto:static int selinux_netlbl_socket_connect_helper(struct sock *sk, struct sockaddr *addr)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct sock * | sk | |
| struct sockaddr * | addr | 
| 545 | sksec = sk_security | 
| 551 | If address family, AF_xxx == Supported address families. Then | 
| 558 | If (secattr == NULL) Then | 
| 562 | rc = netlbl_conn_setattr(sk, addr, secattr) | 
| 563 | If rc == 0 Then nlbl_state = NLBL_CONNLABELED | 
| 566 | Return rc | 
| Name | Describe | 
|---|---|
| selinux_netlbl_socket_connect_locked | selinux_netlbl_socket_connect_locked - Label a client-side socket on* connect*@sk: the socket to label*@addr: the destination address* Description:* Attempt to label a connected socket that already has the socket locked | 
| 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 |