prepare_socket_bind_bpf() is called from two sites: socket_bind_supported() and socket_bind_install_impl(). For the latter, when errors occur we certainly want to log, since they'll be fatal for the unit. But for the former, we should be quiet, at least on the "expected" errors like lack of permissions. I kept error on map resizing and such, which should not fail, at log_warning(). They are not fatal when called from socket_bind_suppported(), but still a sign that something is off. Currently BPF filters can only be used by privileged users. Thus each systemd --user will fail in socket_bind_supported(). With the patch, we only log this at debug level. https://lwn.net/ml/bpf/cover.1620499942.git.yifeifz2@illinois.edu/ gives some hope that unprivileged access will be possible, so let's keep the code trying. We might get lucky and get support for filters in user mode without any changes on our side.
System and Service Manager
Details
Most documentation is available on systemd's web site.
Assorted, older, general information about systemd can be found in the systemd Wiki.
Information about build requirements is provided in the README file.
Consult our NEWS file for information about what's new in the most recent systemd versions.
Please see the Code Map for information about this repository's layout and content.
Please see the Hacking guide for information on how to hack on systemd and test your modifications.
Please see our Contribution Guidelines for more information about filing GitHub Issues and posting GitHub Pull Requests.
When preparing patches for systemd, please follow our Coding Style Guidelines.
If you are looking for support, please contact our mailing list or join our IRC channel.
Stable branches with backported patches are available in the stable repo.
