函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:selinux_socket_unix_stream_connect

函数原型:static int selinux_socket_unix_stream_connect(struct sock *sock, struct sock *other, struct sock *newsk)

返回类型:int

参数:

类型参数名称
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  如果err则返回: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  如果err则返回:err
4919  SID of peer 等于 SID of this object
4921  返回:0