Package: accountsservice
Version: 22.08.8-6
Severity: important

Dear Maintainer(s),

accountsservice's unit has:

ReadOnlyPaths=\
  /usr/share/accountsservice/interfaces/ \
  /usr/share/dbus-1/interfaces/ \
  /var/log/wtmp \
  /run/systemd/seats/

But at least /usr/share/accountsservice/interfaces/ is not installed by
the package itself. As far as I can see on my machine, the malcontent
package installs files under it.

This means that on systemd's autopkgtest it fails to start. The
solution is very simple, just prefix each path listed there with "-" to
make it optional - if the directory exists on the host then it will be
made read-only, otherwise it will be ignored.

test_no_failed (__main__.ServicesTest.test_no_failed)
No failed units ... -------- journal for failed service accounts-daemon.service 
-----------
Jun 15 15:53:38 autopkgtest-lxc-cerudb systemd[1]: Starting Accounts Service...
Jun 15 15:53:38 autopkgtest-lxc-cerudb (s-daemon)[95]: accounts-daemon.service: 
Failed to set up mount namespacing: 
/run/systemd/mount-rootfs/usr/share/accountsservice/interfaces: No such file or 
directory
Jun 15 15:53:38 autopkgtest-lxc-cerudb (s-daemon)[95]: accounts-daemon.service: 
Failed at step NAMESPACE spawning /usr/libexec/accounts-daemon: No such file or 
directory
Jun 15 15:53:38 autopkgtest-lxc-cerudb systemd[1]: accounts-daemon.service: 
Main process exited, code=exited, status=226/NAMESPACE
Jun 15 15:53:38 autopkgtest-lxc-cerudb systemd[1]: accounts-daemon.service: 
Failed with result 'exit-code'.
Jun 15 15:53:38 autopkgtest-lxc-cerudb systemd[1]: Failed to start Accounts 
Service.
FAIL

-- 
Kind regards,
Luca Boccassi

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to