Bug#1038137: accountsservice: unit requires /usr/share/accountsservice/interfaces but it is not installed

2023-12-17 Thread Michael Biebl

On Thu, 15 Jun 2023 21:44:27 +0100 Luca Boccassi  wrote:

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.



The other valid alternative is to ship the (empty) directory in the 
accountsservice package.


OpenPGP_signature.asc
Description: OpenPGP digital signature


Bug#1038137: accountsservice: unit requires /usr/share/accountsservice/interfaces but it is not installed

2023-06-15 Thread Luca Boccassi
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


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