Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:LSM hook implementation that authorizes that a flow can use a xfrm policy* rule.

Proto:int selinux_xfrm_policy_lookup(struct xfrm_sec_ctx *ctx, unsigned int fl_secid, u8 dir)

Type:int

Parameter:

TypeParameterName
struct xfrm_sec_ctx *ctx
unsigned intfl_secid
u8dir
159  If Not ctx Then Return 0
163  If Not Returns true if the context is an LSM/SELinux context. Then Return -EINVAL
166  rc = avc_has_perm - Check permissions and perform any appropriate auditing
169  Return If rc == -EACCES Then -ESRCH Else rc