函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型:static int smack_unix_may_send(struct socket *sock, struct socket *other)

返回类型:int

参数:

类型参数名称
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  如果smack_privileged(Override MAC access.The base kernel enforces no MAC policy.An LSM may enforce a MAC policy, and if it does and it choosesto implement capability based overrides of that policy, this isthe capability it should use to do so. )则返回: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  返回:rc