summaryrefslogtreecommitdiffstats
path: root/src/nspawn
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2024-11-13 05:42:03 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2024-11-14 08:54:06 +0100
commit330e44e293d5db71a9bb28d3d13e2ee931b82ee6 (patch)
treeae02822adb318cf06614e4c5113890473fe3729d /src/nspawn
parentboot/stub: allocate pages for combined initrds below 4GiB only on x86 (#35149) (diff)
downloadsystemd-330e44e293d5db71a9bb28d3d13e2ee931b82ee6.tar.xz
systemd-330e44e293d5db71a9bb28d3d13e2ee931b82ee6.zip
nspawn: silence warning about failure in getting fuse version
Follow-up for dc3223919f663b7c8b8d8d1d6072b4487df7709b. If nspawn is invoked with DevicePolicy= but DeviceAllow= does not contain /dev/fuse, nspawn will fail to get fuse version with -EPERM. Let's silence the warning in that case.
Diffstat (limited to 'src/nspawn')
-rw-r--r--src/nspawn/nspawn.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
index db0d64e62a..18c23b2117 100644
--- a/src/nspawn/nspawn.c
+++ b/src/nspawn/nspawn.c
@@ -2211,7 +2211,8 @@ static bool should_enable_fuse(void) {
else if (ERRNO_IS_NEG_NOT_SUPPORTED(r))
log_debug_errno(r, "Disabling FUSE: Kernel does not support the fsopen() family of syscalls: %m");
else
- log_warning_errno(r, "Disabling FUSE: Failed to determine FUSE version: %m");
+ log_full_errno(ERRNO_IS_NEG_PRIVILEGE(r) ? LOG_DEBUG : LOG_WARNING, r,
+ "Disabling FUSE: Failed to determine FUSE version: %m");
return false;
}