]> git.ipfire.org Git - thirdparty/systemd.git/commit
bpf-devices: normalize the return handling of functions that put together policy
authorLennart Poettering <lennart@poettering.net>
Fri, 9 Feb 2024 11:26:50 +0000 (12:26 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 9 Feb 2024 14:32:10 +0000 (15:32 +0100)
commit958b73bef1ea35d40c7a58aef00f1b2de8fec0c0
treecc137e149d6514712eef2568aedd5182709e322a
parent893220f62ff35b6a6f4a36167bf0dbc08ea3f701
bpf-devices: normalize the return handling of functions that put together policy

under some conditions we suppress generating BPF programs. Let's
systematically return 0 when we do this, and 1 if we did actually
soething, instead of second guessing this in the caller.

This is not only more correct, but allows us to suppress BPF programs in
more cases in later commits.
src/core/bpf-devices.c
src/core/cgroup.c