Function report |
Source Code:security\selinux\netlabel.c |
Create Date:2022-07-28 19:17:21 |
| 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_sock_genattr - Generate the NetLabel socket secattr*@sk: the socket* Description:* Generate the NetLabel security attributes for a socket, making full use of* the socket's attribute cache. Returns a pointer to the security attributes
Proto:static struct netlbl_lsm_secattr *selinux_netlbl_sock_genattr(struct sock *sk)
Type:struct netlbl_lsm_secattr
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct sock * | sk |
| 70 | sksec = sk_security |
| 73 | If ( NetLabel sec attributes != NULL) Then Return NetLabel sec attributes |
| 77 | If (secattr == NULL) Then Return NULL |
| 81 | If rc != 0 Then |
| 83 | Return NULL |
| 87 | Return secattr |
| Name | Describe |
|---|---|
| selinux_netlbl_socket_post_create | selinux_netlbl_socket_post_create - Label a socket using NetLabel*@sock: the socket to label*@family: protocol family* Description:* Attempt to label a socket using the NetLabel mechanism using the given* SID |
| selinux_netlbl_socket_connect_helper | 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. |
| 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 |