From: James Hilliard Date: Fri, 30 Sep 2022 21:42:22 +0000 (-0600) Subject: Revert "bpf: fix is_allow_list section" X-Git-Tag: v252-rc1~47 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0d73603b256ecef3ce475f5268f6dfccfd076850;p=thirdparty%2Fsystemd.git Revert "bpf: fix is_allow_list section" 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. --- diff --git a/src/core/bpf/restrict_ifaces/restrict-ifaces.bpf.c b/src/core/bpf/restrict_ifaces/restrict-ifaces.bpf.c index 3e33728f400..32cde5c8e02 100644 --- a/src/core/bpf/restrict_ifaces/restrict-ifaces.bpf.c +++ b/src/core/bpf/restrict_ifaces/restrict-ifaces.bpf.c @@ -6,7 +6,7 @@ #include #include -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.