Package: cadvisor
Version: 0.38.7+ds1-2+b7
Severity: normal
Tags: patch

Dear Maintainers,

If multiple arguments are included in DAEMON_ARGS in
/etc/default/cadvisor, these arguments are not split by whitespace and
are instead passed as one single argument to cAdvisor.

Please consider changing cadvisor.service as follows:

diff --git a/debian/cadvisor.service b/debian/cadvisor.service
index bdd4e55..ac49112 100644
--- a/debian/cadvisor.service
+++ b/debian/cadvisor.service
@@ -15,7 +15,7 @@ ExecStart=/usr/bin/cadvisor \
     --storage_driver_secure=${CADVISOR_STORAGE_DRIVER_SECURE} \
     --storage_driver_user=${CADVISOR_STORAGE_DRIVER_USER} \
     --logtostderr=${CADVISOR_LOG_TO_STDERR} \
-    ${DAEMON_ARGS}
+    $DAEMON_ARGS

 [Install]
 WantedBy=multi-user.target

This issue has been raised in the past but was not properly resolved:
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=886987

Thanks,
Alex

-- System Information:
Debian Release: 11.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-9-amd64 (SMP w/4 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages cadvisor depends on:
ii  libc6     2.31-13+deb11u2
ii  libzstd1  1.4.8+dfsg-2.1

cadvisor recommends no packages.

cadvisor suggests no packages.

-- Configuration Files:
/etc/default/cadvisor changed [not included]

-- no debconf information

Reply via email to