函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:LSM hook implementation that authorizes that a flow can use a xfrm policy* rule.

函数原型:int selinux_xfrm_policy_lookup(struct xfrm_sec_ctx *ctx, unsigned int fl_secid, u8 dir)

返回类型:int

参数:

类型参数名称
struct xfrm_sec_ctx *ctx
unsigned intfl_secid
u8dir
159  如果非ctx则返回:0
163  如果非Returns true if the context is an LSM/SELinux context.则返回:负EINVAL
166  rc等于avc_has_perm - Check permissions and perform any appropriate auditing
169  返回:如果rc恒等于负EACCES则负ESRCH否则rc