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:40
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:smack_socket_bind - record port binding information.*@sock: the socket*@address: the port address*@addrlen: size of the address* Records the label bound to a port.* Returns 0 on success, and error code otherwise

Proto:static int smack_socket_bind(struct socket *sock, struct sockaddr *address, int addrlen)

Type:int

Parameter:

TypeParameterName
struct socket *sock
struct sockaddr *address
intaddrlen
2810  If sk != NULL && sk_family == PF_INET6 Then
2811  If addrlen < SIN6_LEN_RFC2133 || address family, AF_xxx != IP version 6 Then Return -EINVAL
2814  smk_ipv6_port_label - Smack port access table management*@sock: socket*@address: address* Create or update the port list entry
2816  Return 0