Function report |
Source Code:security\selinux\xfrm.c |
Create Date:2022-07-28 19:16:36 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:LSM hook implementation that authorizes that a state matches* the given policy, flow combo.
Proto:int selinux_xfrm_state_pol_flow_match(struct xfrm_state *x, struct xfrm_policy *xp, const struct flowi *fl)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct xfrm_state * | x | |
struct xfrm_policy * | xp | |
const struct flowi * | fl |
182 | If Not security Then If Security context Then |
185 | Return 0 |
186 | Else Return 1 |
189 | Else If Not Security context Then |
192 | Return 0 |
193 | Else If Not Returns true if the xfrm contains a security blob for SELinux. Then |
196 | Return 0 |
200 | If flowi_secid != state_sid Then Return 0 |
206 | Return If avc_has_perm - Check permissions and perform any appropriate auditing Then 0 Else 1 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |