| 1 |
/* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 |
#pragma once |
| 3 |
|
| 4 |
#include "core-forward.h" |
| 5 |
|
| 6 |
int bpf_devices_cgroup_init(BPFProgram **ret, CGroupDevicePolicy policy, bool allow_list); |
| 7 |
int bpf_devices_apply_policy( |
| 8 |
BPFProgram **prog, |
| 9 |
CGroupDevicePolicy policy, |
| 10 |
bool allow_list, |
| 11 |
const char *cgroup_path, |
| 12 |
BPFProgram **prog_installed); |
| 13 |
|
| 14 |
int bpf_devices_allow_list_device(BPFProgram *prog, const char *path, const char *node, CGroupDevicePermissions p); |
| 15 |
int bpf_devices_allow_list_major(BPFProgram *prog, const char *path, const char *name, char type, CGroupDevicePermissions p); |
| 16 |
int bpf_devices_allow_list_static(BPFProgram *prog, const char *path); |