From 34683e39b950c9d14f0de3ac0f58927947ee9df0 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Thu, 18 Feb 2021 12:02:54 +0100 Subject: [PATCH] bpf: handling missing defines Signed-off-by: Christian Brauner --- src/lxc/cgroups/cgroup2_devices.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/lxc/cgroups/cgroup2_devices.h b/src/lxc/cgroups/cgroup2_devices.h index e6302fb7c..18bd253e5 100644 --- a/src/lxc/cgroups/cgroup2_devices.h +++ b/src/lxc/cgroups/cgroup2_devices.h @@ -29,6 +29,18 @@ #include #endif +#ifndef BPF_F_ALLOW_OVERRIDE +#define BPF_F_ALLOW_OVERRIDE (1U << 0) +#endif + +#ifndef BPF_F_ALLOW_MULTI +#define BPF_F_ALLOW_MULTI (1U << 1) +#endif + +#ifndef BPF_F_REPLACE +#define BPF_F_REPLACE (1U << 2) +#endif + #ifndef HAVE_BPF union bpf_attr; -- 2.47.2