函数逻辑报告 |
Source Code:kernel\bpf\cgroup.c |
Create Date:2022-07-27 14:46:30 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:__cgroup_bpf_check_dev_permission
函数原型:int __cgroup_bpf_check_dev_permission(short dev_type, u32 major, u32 minor, short access, enum bpf_attach_type type)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
short | dev_type | |
u32 | major | |
u32 | minor | |
short | access | |
enum bpf_attach_type | type |
765 | struct bpf_cgroup_dev_ctx ctx = { access_type encoded as (BPF_DEVCG_ACC_* << 16) | BPF_DEVCG_DEV_* = (access << 16) | dev_type, major = major, minor = minor, } |
770 | allow等于1 |
773 | cgrp等于task_dfl_cgroup(当前进程) |
778 | 返回:非allow |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |