Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\selinux\netlabel.c Create Date:2022-07-28 19:17:56
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 - 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.

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

Type:int

Parameter:

TypeParameterName
struct sock *sk
struct sockaddr *addr
607  lock_sock(sk)
608  rc = 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
609  release_sock(sk)
611  Return rc