]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: replace cgroup_bpf_supported() with dlopen_bpf_full()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 20 Apr 2025 03:14:23 +0000 (12:14 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 9 May 2025 15:17:52 +0000 (00:17 +0900)
commit4d2b9abbe11131d25aea4966a9c25a06703c6183
treee58a4b029328b5dcea428d237c3c563f7ed1694f
parente06e34a3b6da1b643e07442d48fb3f197baf53dd
core: replace cgroup_bpf_supported() with dlopen_bpf_full()

After 3988e2489aaf30034e09918890f688780c154af7, the function is a simple
wrapper of bpf_dlopen() with logging. Let's introduce dlopen_bpf_full()
that takes log level, and replace cgroup_bpf_supported() with it.
src/core/bpf-restrict-fs.c
src/core/bpf-restrict-ifaces.c
src/core/bpf-socket-bind.c
src/core/bpf-util.c [deleted file]
src/core/bpf-util.h [deleted file]
src/core/meson.build
src/shared/bpf-dlopen.c
src/shared/bpf-dlopen.h