Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:int selinux_netlbl_socket_connect_locked(struct sock *sk, struct sockaddr *addr)

Type:int

Parameter:

TypeParameterName
struct sock *sk
struct sockaddr *addr
584  sksec = sk_security
586  If nlbl_state != NLBL_REQSKB && nlbl_state != NLBL_CONNLABELED Then Return 0
590  Return 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.
Caller
NameDescribe
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.