From: Christian Brauner Date: Thu, 18 Feb 2021 11:02:54 +0000 (+0100) Subject: bpf: handling missing defines X-Git-Tag: lxc-5.0.0~278^2~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34683e39b950c9d14f0de3ac0f58927947ee9df0;p=thirdparty%2Flxc.git bpf: handling missing defines Signed-off-by: Christian Brauner --- 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;