]> git.ipfire.org Git - thirdparty/systemd.git/commit
Silence warning about BPF firewall in containers 12741/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 4 Jun 2019 15:22:12 +0000 (17:22 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 4 Jun 2019 15:22:37 +0000 (17:22 +0200)
commitf140ed02f764c731a948dc2b4c3349ba6e2eff24
tree90af02fe562c1aaa5cb60fa62e56daf4425202dc
parent84d2744bc56a1876af90fba9c16df953f9c2cb84
Silence warning about BPF firewall in containers

We'd get a warning on every nspawn invocation:
dev-hugepages.mount: unit configures an IP firewall, but the local system does not support BPF/cgroup firewalling.
(This warning is only shown for the first unit using IP firewalling.)

Before the previous commit, I'd generally get a warning about systemd-udev.service, even though that service is
not started in containers. But are still many other units which that declare a
firewall, which is currently unsupported in containers. Let's stop warning
about this.

The warning is still emitted e.g. if legacy cgroups are used. This is something
that can be configured, so it makes more sense to emit the warning.
src/core/bpf-firewall.c