Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\smack\smack_lsm.c Create Date:2022-07-28 19:22:08
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:smack_ipv6host_label - check host based restrictions*@sip: the object end* looks for host based access restrictions* This version will only be appropriate for really small sets of single label* hosts

Proto:static struct smack_known *smack_ipv6host_label(struct sockaddr_in6 *sip)

Type:struct smack_known

Parameter:

TypeParameterName
struct sockaddr_in6 *sip
2361  sap = IPv6 address
2363  found = 0
2368  If smk_ipv6_localhost - Check for local ipv6 host address*@sip: the address* Returns boolean true if this is the localhost address Then Return NULL
2376  If (label == NULL) Then Continue
2383  When i < 8 cycle
2384  If (s6_addr16[i] & s6_addr16[i]) != s6_addr16[i] Then
2386  found = 0
2387  Break
2390  If found Then Return label
2394  Return NULL
Caller
NameDescribe
smk_ipv6_port_checksmk_ipv6_port_check - check Smack port access*@sk: socket*@address: address*@act: the action being taken* Create or update the port list entry
smack_socket_connectsmack_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_sendmsgsmack_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_skbsmack_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