函数逻辑报告 |
Source Code:security\selinux\xfrm.c |
Create Date:2022-07-27 20:46:22 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:LSM hook implementation that allocates a xfrm_sec_state and populates based* on a secid.
函数原型:int selinux_xfrm_state_alloc_acquire(struct xfrm_state *x, struct xfrm_sec_ctx *polsec, unsigned int secid)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct xfrm_state * | x | |
| struct xfrm_sec_ctx * | polsec | |
| unsigned int | secid |
| 348 | char * ctx_str = NULL |
| 351 | 如果非polsec则返回:0 |
| 357 | rc等于security_sid_to_context( & selinux_state, secid, & ctx_str, & str_len) |
| 363 | 如果非ctx则 |
| 368 | ctx_doi等于XFRM_SC_DOI_LSM |
| 374 | Security context 等于ctx |
| 375 | atomic_inc( & Labeled XFRM instance counter ) |
| 376 | out : |
| 377 | 释放内存 |
| 378 | 返回:rc |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |