Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:selinux_socket_unix_stream_connect

Proto:static int selinux_socket_unix_stream_connect(struct sock *sock, struct sock *other, struct sock *newsk)

Type:int

Parameter:

TypeParameterName
struct sock *sock
struct sock *other
struct sock *newsk
4893  sksec_sock = sk_security
4894  sksec_other = sk_security
4895  sksec_new = sk_security
4897  struct lsm_network_audit net = {0, }
4900  type = LSM_AUDIT_DATA_NET
4901  net = net
4902  sk = other
4904  err = avc_has_perm - Check permissions and perform any appropriate auditing
4908  If err Then Return err
4912  SID of peer = SID of this object
4913  err = security_sid_mls_copy( & selinux_state, SID of this object , SID of this object , & SID of this object )
4915  If err Then Return err
4919  SID of peer = SID of this object
4921  Return 0