函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:selinux_netlbl_socket_connect_locked - Label a client-side socket on* connect*@sk: the socket to label*@addr: the destination address* Description:* Attempt to label a connected socket that already has the socket locked

函数原型:int selinux_netlbl_socket_connect_locked(struct sock *sk, struct sockaddr *addr)

返回类型:int

参数:

类型参数名称
struct sock *sk
struct sockaddr *addr
584  sksec等于sk_security
586  如果nlbl_state不等于NLBL_REQSKBnlbl_state不等于NLBL_CONNLABELED则返回:0
590  返回:selinux_netlbl_socket_connect_helper - Help label a client-side socket on* connect*@sk: the socket to label*@addr: the destination address* Description:* Attempt to label a connected socket with NetLabel using the given address.
调用者
名称描述
selinux_netlbl_socket_connectselinux_netlbl_socket_connect - Label a client-side socket on connect*@sk: the socket to label*@addr: the destination address* Description:* Attempt to label a connected socket with NetLabel using the given address.