Function report |
Source Code:security\smack\smack_lsm.c |
Create Date:2022-07-28 19:22:29 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:smk_ipv6_port_check - check Smack port access*@sk: socket*@address: address*@act: the action being taken* Create or update the port list entry
Proto:static int smk_ipv6_port_check(struct sock *sk, struct sockaddr_in6 *address, int act)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct sock * | sk | |
struct sockaddr_in6 * | address | |
int | act |
2620 | ssp = sk_security |
2621 | struct smack_known * skp = NULL |
2625 | If act == SMK_RECEIVING Then |
2627 | object = inbound label |
2628 | Else |
2629 | skp = outbound label |
2638 | If (skp == NULL) Then skp = smack_net_ambient |
2640 | If (object == NULL) Then object = smack_net_ambient |
2652 | If act == SMK_RECEIVING Then Return 0 |
2655 | port = ntohs( Transport layer port # ) |
2658 | If he port number != port || Socket type != sk_type Then Continue |
2660 | object = bound label |
2661 | If act == SMK_CONNECTING Then TCP peer label = utgoing label |
2663 | Break |
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. |
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 |