Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Called whenever a new socket is created by accept(2) or sctp_peeloff(3).

Proto:static void selinux_sctp_sk_clone(struct sctp_endpoint *ep, struct sock *sk, struct sock *newsk)

Type:void

Parameter:

TypeParameterName
struct sctp_endpoint *ep
struct sock *sk
struct sock *newsk
5354  sksec = sk_security
5355  newsksec = sk_security
5360  If Not selinux_policycap_extsockclass() Then Return selinux_sk_clone_security(sk, newsk)
5363  SID of this object = Security identifiers from incoming (INIT). These are set by * security_sctp_assoc_request(). These will only be used by * SCTP TCP type sockets and peeled off connections as they * cause a new socket to be generated. security_sctp_sk_clone() * will then p
5364  SID of peer = peer_secid
5365  sock security class = sock security class
5366  selinux_netlbl_sctp_sk_clone(sk, newsk)