]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Revert "bpf: fix is_allow_list section"
authorJames Hilliard <james.hilliard1@gmail.com>
Fri, 30 Sep 2022 21:42:22 +0000 (15:42 -0600)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 1 Oct 2022 04:24:50 +0000 (13:24 +0900)
GCC was modified to use the same default section as LLVM, as such
this is no longer required.

Details:
https://github.com/gcc-mirror/gcc/commit/a0aafbc324aa90421f0ce99c6f5bbf64ed163da6

This reverts commit e8b1e9cf1095f9d6d0f1e2dce2503e25fec2e6c5.

src/core/bpf/restrict_ifaces/restrict-ifaces.bpf.c

index 3e33728f4008dc4b75d0125ebec9c75fc147bc85..32cde5c8e020fc8f4e20470dcaa395a1c4f5bb5f 100644 (file)
@@ -6,7 +6,7 @@
 #include <linux/bpf.h>
 #include <bpf/bpf_helpers.h>
 
-const volatile __u8 is_allow_list SEC(".rodata") = 0;
+const volatile __u8 is_allow_list = 0;
 
 /* Map containing the network interfaces indexes.
  * The interpretation of the map depends on the value of is_allow_list.