Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:smack_unix_may_send - Smack access on UDS*@sock: one socket*@other: the other socket* Return 0 if a subject with the smack of sock could access* an object with the smack of other, otherwise an error code

Proto:static int smack_unix_may_send(struct socket *sock, struct socket *other)

Type:int

Parameter:

TypeParameterName
struct socket *sock
struct socket *other
3633  ssp = sk_security
3634  osp = sk_security
3641  smk_ad_init_net( & ad, __func__, LSM_AUDIT_DATA_NET, & net)
3642  smk_ad_setfield_u_net_sk( & ad, sk)
3645  If smack_privileged( Override MAC access) Then Return 0
3648  rc = smk_access( outbound label , inbound label , MAY_WRITE, & ad)
3649  rc = smk_bu_note("UDS send", outbound label , inbound label , MAY_WRITE, rc)
3650  Return rc