[Pkg-utopia-maintainers] Bug#1026425: polkitd.postinst removes directories created by new install of polkitd-pkla
Mike Gerow
gerow at google.com
Mon Dec 19 22:50:16 GMT 2022
Package: polkitd
Version: 122-1
Severity: important
X-Debbugs-Cc: gerow at google.com
If I install polkitd-pkla from a fresh unstable chroot it seems that
polkitd.postinst ends up removing the /etc/polkit-1/localauthority.conf.d
and
/etc/polkit-1/nullbackend.conf.d directories due to these lines in
debian/polkitd.postinst:
# Clean up old directories after dpkg-maintscript-helper has removed the
# conffiles.
if dpkg --compare-versions "$2" lt "0.109-1"; then
if [ -d /etc/polkit-1/localauthority.conf.d/ ]; then
rmdir --ignore-fail-on-non-empty
/etc/polkit-1/localauthority.conf.d/
fi
if [ -d /etc/polkit-1/nullbackend.conf.d/ ]; then
rmdir --ignore-fail-on-non-empty /etc/polkit-1/nullbackend.conf.d/
fi
fi
These are the same directories that polkitd-pkla explicitly creates. Is this
the intended behavior when installing polkitd-pkla? I'm currently trying to
make use of polkitd-pkla to support some (now legacy) pkla configs. I'll
probably end up converting them to javascript anyway since it seems that's
the
direction upstream has headed, but I'm filing this since it seems like it
might
affect others.
-- System Information:
Debian Release: bookworm/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 5.19.11-1rodete1-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=C.UTF-8 (charmap=locale: Cannot set
LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
Versions of packages polkitd-pkla depends on:
ii libc6 2.36-6
ii libglib2.0-0 2.74.3-1
ii libpolkit-gobject-1-0 122-1
ii polkitd 122-1
polkitd-pkla recommends no packages.
polkitd-pkla suggests no packages.
Versions of packages polkitd depends on:
ii adduser 3.129
ii dbus [default-dbus-system-bus] 1.14.4-1
ii libc6 2.36-6
ii libduktape207 2.7.0-1+b1
ii libexpat1 2.5.0-1
ii libglib2.0-0 2.74.3-1
ii libpam-systemd [logind] 252.3-2
ii libpam0g 1.5.2-5
ii libpolkit-agent-1-0 122-1
ii libpolkit-gobject-1-0 122-1
ii libsystemd0 252.3-2
ii systemd [systemd-sysusers] 252.3-2
ii xml-core 0.18+nmu1
polkitd suggests no packages.
-- debconf information excluded
More information about the Pkg-utopia-maintainers
mailing list