mirror of
https://github.com/systemd/systemd.git
synced 2025-03-14 04:58:28 +03:00
core: detect_container() may return negative errno
This commit is contained in:
parent
23d8003bb6
commit
bcdb3b7d50
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user