]> git.ipfire.org Git - thirdparty/systemd.git/commit
core/bpf-devices: use bpf_program_supported()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 8 Apr 2025 08:26:58 +0000 (17:26 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 9 May 2025 15:17:52 +0000 (00:17 +0900)
commitad446c8ceb97c03971f06fd43e97720afe33be5a
tree361f1ca7e6d351d2601633711e51702f1e945d1e
parentec3c5cfac74e8361a3b0153cc9e8cfdbbcbde0c6
core/bpf-devices: use bpf_program_supported()

Note, BPF_PROG_TYPE_CGROUP_DEVICE is supported since kernel v4.15.
As our baseline on the kernel is v5.4, we can assume the bpf type is
always supported.
src/core/bpf-devices.c
src/core/bpf-devices.h
src/core/cgroup.c
src/test/test-bpf-devices.c