From: Michael Tremer Date: Fri, 6 Oct 2023 15:17:25 +0000 (+0000) Subject: cgroup: Make the BPF log buffer statically allocated again X-Git-Tag: 0.9.30~1527 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8a2696c0265be0df744a540c68e15be1b818537;p=pakfire.git cgroup: Make the BPF log buffer statically allocated again This might potentially make this non-thread-safe, but without loading the BPF program crashes immediately. Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/cgroup.c b/src/libpakfire/cgroup.c index d40b68fed..3559559a1 100644 --- a/src/libpakfire/cgroup.c +++ b/src/libpakfire/cgroup.c @@ -214,7 +214,7 @@ static void pakfire_cgroup_free(struct pakfire_cgroup* cgroup) { } static int pakfire_cgroup_setup_devices(struct pakfire_cgroup* cgroup) { - char bpf_log_buffer[BPF_LOG_BUF_SIZE]; + static char bpf_log_buffer[BPF_LOG_BUF_SIZE]; LIBBPF_OPTS(bpf_prog_load_opts, opts, // Log Buffer