函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\smack\smack_lsm.c Create Date:2022-07-27 20:51:42
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:static int smack_socket_bind(struct socket *sock, struct sockaddr *address, int addrlen)

返回类型:int

参数:

类型参数名称
struct socket *sock
struct sockaddr *address
intaddrlen
2810  如果sk不等于NULLsk_family恒等于PF_INET6
2811  如果addrlen小于SIN6_LEN_RFC2133address family, AF_xxx 不等于IP version 6 则返回:负EINVAL
2814  smk_ipv6_port_label - Smack port access table management*@sock: socket*@address: address* Create or update the port list entry
2816  返回:0