]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
bpf: handling missing defines
authorChristian Brauner <christian.brauner@ubuntu.com>
Thu, 18 Feb 2021 11:02:54 +0000 (12:02 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Thu, 18 Feb 2021 11:02:54 +0000 (12:02 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/cgroups/cgroup2_devices.h

index e6302fb7cb8ac4393d6d3d80a95878a4ab0eafe5..18bd253e54d643ac378ccd0722fbff7bdd092336 100644 (file)
 #include <linux/filter.h>
 #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;