函数逻辑报告 |
Source Code:security\selinux\xfrm.c |
Create Date:2022-07-27 20:46:05 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Allocates a xfrm_sec_state and populates it using the supplied security* xfrm_user_sec_ctx context.
函数原型:static int selinux_xfrm_alloc_user(struct xfrm_sec_ctx **ctxp, struct xfrm_user_sec_ctx *uctx, gfp_t gfp)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct xfrm_sec_ctx ** | ctxp | |
struct xfrm_user_sec_ctx * | uctx | |
gfp_t | gfp |
79 | tsec等于selinux_cred(current_cred - Access the current task's subjective credentials* Access the subjective credentials of the current task. RCU-safe,* since nobody else can modify it.()) |
80 | struct xfrm_sec_ctx * ctx = NULL |
83 | 如果ctxp恒等于NULL或uctx恒等于NULL或ctx_doi不等于XFRM_SC_DOI_LSM或LSMs: e.g., selinux == 1 不等于XFRM_SC_ALG_SELINUX则返回:负EINVAL |
101 | rc等于security_context_to_sid( & selinux_state, ctx_str, str_len, & ctx_sid, gfp) |
113 | atomic_inc( & Labeled XFRM instance counter ) |
114 | 返回:0 |
116 | err : |
117 | 释放内存 |
118 | 返回:rc |
名称 | 描述 |
---|---|
selinux_xfrm_policy_alloc | LSM hook implementation that allocs and transfers uctx spec to xfrm_policy. |
selinux_xfrm_state_alloc | LSM hook implementation that allocates a xfrm_sec_state, populates it using* the supplied security context, and assigns it to the xfrm_state. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |