Function report |
Source Code:kernel\bpf\cgroup.c |
Create Date:2022-07-28 13:28:02 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__cgroup_bpf_check_dev_permission
Proto:int __cgroup_bpf_check_dev_permission(short dev_type, u32 major, u32 minor, short access, enum bpf_attach_type type)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| 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(current process) |
| 774 | allow = BPF_PROG_RUN_ARRAY( array of effective progs in this cgroup [type], & ctx, BPF_PROG_RUN) |
| 778 | Return Not allow |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |