函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:LSM hook implementation that authorizes that a state matches* the given policy, flow combo.

函数原型:int selinux_xfrm_state_pol_flow_match(struct xfrm_state *x, struct xfrm_policy *xp, const struct flowi *fl)

返回类型:int

参数:

类型参数名称
struct xfrm_state *x
struct xfrm_policy *xp
const struct flowi *fl
182  如果非security则如果Security context
185  返回:0
186  否则返回:1
189  否则如果非Security context
192  返回:0
193  否则如果非Returns true if the xfrm contains a security blob for SELinux.
196  返回:0
198  state_sid等于ctx_sid
200  如果flowi_secid不等于state_sid则返回:0
206  返回:如果avc_has_perm - Check permissions and perform any appropriate auditing则0否则1