Package: phpmyadmin
Version: 4:4.6.6-5
Severity: important

Hi,

avahi as part of it's startup routine, runs chroot.
Since phpmyadmin postinst manually creates a symlink
/etc/avahi/services/phpmyadmin.service -> ../../phpmyadmin/phpmyadmin.service
this results in the following error message in avahi as the file is not
accessible in the chroot:


Nov 26 08:41:42 pluto systemd[1]: Started Avahi mDNS/DNS-SD Stack.
Nov 26 08:41:42 pluto avahi-daemon[695]: Successfully called chroot().
Nov 26 08:41:42 pluto avahi-daemon[695]: Successfully dropped remaining 
capabilities.
Nov 26 08:41:42 pluto avahi-daemon[695]: Loading service file 
/services/phpmyadmin.service.
Nov 26 08:41:42 pluto avahi-daemon[695]: open("/services/phpmyadmin.service", 
O_RDONLY): No such file or directory
Nov 26 08:41:42 pluto avahi-daemon[695]: Failed to load service group file 
/services/phpmyadmin.service, ignoring.


Please consider shipping /etc/avahi/services/phpmyadmin.service as a
real file, i.e. drop the symlink and move
/etc/phpmyadmin/phpmyadmin.service to /etc/avahi/services/phpmyadmin.service

This is how other packages handle it:
$ apt-file search /etc/avahi/services/
apt-cacher-ng: /etc/avahi/services/apt-cacher-ng.service
nut-server: /etc/avahi/services/nut.service
plinth: /etc/avahi/services/domain.service
plinth: /etc/avahi/services/freedombox.service
plinth: /etc/avahi/services/sftp-ssh.service
plinth: /etc/avahi/services/ssh.service
plinth: /etc/avahi/services/xmpp-server.service

Once /etc/avahi/services/phpmyadmin.service is a real file, the result
is:

Nov 26 08:54:41 pluto systemd[1]: Started Avahi mDNS/DNS-SD Stack.
Nov 26 08:54:41 pluto avahi-daemon[3738]: Successfully called chroot().
Nov 26 08:54:41 pluto avahi-daemon[3738]: Successfully dropped remaining 
capabilities.
Nov 26 08:54:41 pluto avahi-daemon[3738]: Loading service file 
/services/phpmyadmin.service.
...
Nov 26 08:54:42 pluto avahi-daemon[3738]: Server startup complete. Host name is 
pluto.local. Local service cookie is 123456789.
Nov 26 08:54:43 pluto avahi-daemon[3738]: Service "phpMyAdmin on pluto" 
(/services/phpmyadmin.service) successfully established.


Regards,
Michael


-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.18.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), 
LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages phpmyadmin depends on:
ii  dbconfig-common                 2.0.10
ii  dbconfig-mysql                  2.0.10
ii  debconf [debconf-2.0]           1.5.69
ii  libjs-sphinxdoc                 1.7.9-1
ii  perl                            5.28.0-4
ii  php                             2:7.3+68
ii  php-cli                         2:7.3+68
ii  php-gettext                     1.0.12-0.1
ii  php-mbstring                    2:7.3+68
ii  php-mysql                       2:7.3+68
ii  php-php-gettext                 1.0.12-0.1
ii  php-phpseclib                   2.0.12-1
ii  php-xml                         2:7.3+68
ii  php7.3 [php]                    7.3.0~rc5-2
ii  php7.3-cli [php-cli]            7.3.0~rc5-2
ii  php7.3-json [php-json]          7.3.0~rc5-2
ii  php7.3-mbstring [php-mbstring]  7.3.0~rc5-2
ii  php7.3-mysql [php-mysqli]       7.3.0~rc5-2
ii  php7.3-xml [php-xml]            7.3.0~rc5-2
ii  ucf                             3.0038

Versions of packages phpmyadmin recommends:
ii  apache2 [httpd]       2.4.37-1
ii  php-bz2               2:7.3+68
pn  php-curl              <none>
ii  php-gd                2:7.3+68
ii  php-tcpdf             6.2.13+dfsg-1
ii  php-zip               2:7.3+68
ii  php7.3-bz2 [php-bz2]  7.3.0~rc5-2
ii  php7.3-gd [php-gd]    7.3.0~rc5-2
ii  php7.3-zip [php-zip]  7.3.0~rc5-2

Versions of packages phpmyadmin suggests:
ii  epiphany-browser [www-browser]              3.30.1-1+b1
ii  firefox [www-browser]                       63.0.1-1
ii  google-chrome-stable [www-browser]          70.0.3538.110-1
ii  lynx [www-browser]                          2.8.9rel.1-2
ii  mariadb-server-10.1 [virtual-mysql-server]  1:10.1.37-1
ii  w3m [www-browser]                           0.5.3-36+b1

-- debconf information excluded

Reply via email to