函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Called whenever a new socket is created by accept(2) or sctp_peeloff(3).

函数原型:static void selinux_sctp_sk_clone(struct sctp_endpoint *ep, struct sock *sk, struct sock *newsk)

返回类型:void

参数:

类型参数名称
struct sctp_endpoint *ep
struct sock *sk
struct sock *newsk
5354  sksec等于sk_security
5355  newsksec等于sk_security
5360  如果非selinux_policycap_extsockclass()则返回: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)