]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/core/bpf-devices.h
Merge pull request #17549 from yuwata/tiny-fixes
[thirdparty/systemd.git] / src / core / bpf-devices.h
CommitLineData
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 8typedef struct BPFProgram BPFProgram;
084c7007 9
6b000af4 10int bpf_devices_cgroup_init(BPFProgram **ret, CGroupDevicePolicy policy, bool allow_list);
0848715c
ZJS
11int bpf_devices_apply_policy(
12 BPFProgram *prog,
13 CGroupDevicePolicy policy,
6b000af4 14 bool allow_list,
0848715c
ZJS
15 const char *cgroup_path,
16 BPFProgram **prog_installed);
084c7007 17
124e05b3 18int bpf_devices_supported(void);
6b000af4
LP
19int bpf_devices_allow_list_device(BPFProgram *prog, const char *path, const char *node, const char *acc);
20int bpf_devices_allow_list_major(BPFProgram *prog, const char *path, const char *name, char type, const char *acc);
21int bpf_devices_allow_list_static(BPFProgram *prog, const char *path);