Function report |
Source Code:security\smack\smack_lsm.c |
Create Date:2022-07-28 19:22:15 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:smack_netlbel_send - Set the secattr on a socket and perform access checks*@sk: the socket*@sap: the destination address* Set the correct secattr for the given socket based on the destination* address and perform any outbound access checks needed.
Proto:static int smack_netlabel_send(struct sock *sk, struct sockaddr_in *sap)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct sock * | sk | |
struct sockaddr_in * | sap |
2456 | ssp = sk_security |
2461 | If (hkp != NULL) Then |
2465 | smk_ad_init_net( & ad, __func__, LSM_AUDIT_DATA_NET, & net) |
2466 | family = Address family |
2467 | dport = Port number |
2471 | skp = outbound label |
2474 | Else |
2475 | sk_lbl = SMACK_CIPSO_SOCKET |
2476 | rc = 0 |
Name | Describe |
---|---|
smack_socket_connect | smack_socket_connect - connect access check*@sock: the socket*@sap: the other end*@addrlen: size of sap* Verifies that a connection may be possible* Returns 0 on success, and error code otherwise |
smack_socket_sendmsg | smack_socket_sendmsg - Smack check based on destination host*@sock: the socket*@msg: the message*@size: the size of the message* Return 0 if the current subject can write to the destination host. |
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 |