函数逻辑报告 |
Source Code:security\apparmor\lsm.c |
Create Date:2022-07-27 21:38:26 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:apparmor_socket_post_create - setup the per-socket security struct* Note:* - kernel sockets currently labeled unconfined but we may want to* move to a special kernel label* - socket may not have sk here if created with sock_create_lite or* sock_alloc
函数原型:static int apparmor_socket_post_create(struct socket *sock, int family, int type, int protocol, int kern)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct socket * | sock | |
| int | family | |
| int | type | |
| int | protocol | |
| int | kern |
| 847 | 如果kern则 |
| 848 | ns等于aa_get_current_ns() |
| 850 | label等于aa_get_label(ns_unconfined(ns)) |
| 855 | 如果sk则 |
| 861 | aa_put_label(label) |
| 863 | 返回:0 |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |