]>
Commit | Line | Data |
---|---|---|
db9ecf05 | 1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ |
084c7007 RG |
2 | #pragma once |
3 | ||
4 | #include <inttypes.h> | |
5 | ||
0848715c | 6 | #include "cgroup.h" |
084c7007 | 7 | |
0848715c | 8 | typedef struct BPFProgram BPFProgram; |
084c7007 | 9 | |
6b000af4 | 10 | int bpf_devices_cgroup_init(BPFProgram **ret, CGroupDevicePolicy policy, bool allow_list); |
0848715c | 11 | int bpf_devices_apply_policy( |
76dc1725 | 12 | BPFProgram **prog, |
0848715c | 13 | CGroupDevicePolicy policy, |
6b000af4 | 14 | bool allow_list, |
0848715c ZJS |
15 | const char *cgroup_path, |
16 | BPFProgram **prog_installed); | |
084c7007 | 17 | |
124e05b3 | 18 | int bpf_devices_supported(void); |
6b000af4 LP |
19 | int bpf_devices_allow_list_device(BPFProgram *prog, const char *path, const char *node, const char *acc); |
20 | int bpf_devices_allow_list_major(BPFProgram *prog, const char *path, const char *name, char type, const char *acc); | |
21 | int bpf_devices_allow_list_static(BPFProgram *prog, const char *path); |