mirror of
https://github.com/systemd/systemd.git
synced 2026-08-08 17:10:55 +00:00
loopback: use ERRNO_IS_PRIVILEGE() where appropriate
This commit is contained in:
@@ -208,7 +208,7 @@ int loopback_setup(void) {
|
||||
/* If we lack the permissions to configure the loopback device,
|
||||
* but we find it to be already configured, let's exit cleanly,
|
||||
* in order to supported unprivileged containers. */
|
||||
if (state_up.rcode == -EPERM && check_loopback(rtnl))
|
||||
if (ERRNO_IS_PRIVILEGE(state_up.rcode) && check_loopback(rtnl))
|
||||
return 0;
|
||||
|
||||
return log_warning_errno(state_up.rcode, "Failed to configure loopback network device: %m");
|
||||
|
||||
Reference in New Issue
Block a user