diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-12-15 01:13:32 +0900 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-12-14 19:35:11 +0100 |
commit | bcdb3b7d5076cf6ad17cb70df8db22d876880ada (patch) | |
tree | dcd1c0a78acb97a79f10025eb73f6cb1ffde29e6 | |
parent | 23d8003bb6dadb8805bdcba5d1adc75394e405c0 (diff) | |
download | systemd-bcdb3b7d5076cf6ad17cb70df8db22d876880ada.tar.gz |
core: detect_container() may return negative errno
-rw-r--r-- | src/core/bpf-firewall.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/bpf-firewall.c b/src/core/bpf-firewall.c index 44aa1bfb1e..5952eaf2f7 100644 --- a/src/core/bpf-firewall.c +++ b/src/core/bpf-firewall.c @@ -893,7 +893,7 @@ void emit_bpf_firewall_warning(Unit *u) { static bool warned = false; if (!warned) { - bool quiet = bpf_firewall_unsupported_reason == -EPERM && detect_container(); + bool quiet = bpf_firewall_unsupported_reason == -EPERM && detect_container() > 0; log_unit_full_errno(u, quiet ? LOG_DEBUG : LOG_WARNING, bpf_firewall_unsupported_reason, "unit configures an IP firewall, but %s.\n" |