Package: polkitd Version: 126-2 Severity: minor Steps to replicate:
1. sudo systemctl restart polkit.service 2. sudo journalctl -ru polkit.service 3. observe the messages for the latest restart Observed: Error opening rules directory: Error opening directory ā/usr/local/share/polkit-1/rules.dā: No such file or directory (g-file-error- quark, 4) Error opening rules directory: Error opening directory ā/run/polkit-1/rules.dā: No such file or directory (g-file-error-quark, 4) Expected: (those messages should not appear) The correct solution is a policy question, and I'm not sure what parts are for you vs. upstream, but here are some possibilities: /run/polkit-1/rules.d is in a tmpfs, so can't be created at install-time. Adding this to the [Service] section of /usr/lib/systemd/system/polkit.service would solve the problem, and I would argue is the right solution: RuntimeDirectory=polkit-1 ExecStartPre=/bin/mkdir ${RUNTIME_DIRECTORY}/rules.d Obviously that only works under systemd, though. /usr/local/share/polkit-1/rules.d is in /usr/local, so Debian should ignore it. #1010228 suggests that directory should still be supported in Debian, so should upstream create the directory somehow? I have an upstream PR awaiting review to change these to priority 4 (warning): https://github.com/polkit-org/polkit/pull/536 If it's better not to create the directories, it makes sense to downgrade the messages to info level instead. Let me know if that's better - I'll update the PR and link back here. -- System Information: Debian Release: trixie/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 6.12.10-amd64 (SMP w/4 CPU threads; PREEMPT) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages polkitd depends on: ii adduser 3.137 ii dbus [default-dbus-system-bus] 1.16.0-1 ii libc6 2.40-6 ii libduktape207 2.7.0-2+b2 ii libexpat1 2.6.4-1 ii libglib2.0-0t64 2.82.4-2 ii libpam-systemd [logind] 257.2-3 ii libpam0g 1.5.3-7+b1 ii libpolkit-agent-1-0 126-2 ii libpolkit-gobject-1-0 126-2 ii libsystemd0 257.2-3 ii systemd [systemd-sysusers] 257.2-3 ii xml-core 0.19 polkitd recommends no packages. polkitd suggests no packages. Versions of packages polkitd is related to: pn elogind <none> pn libpam-elogind <none> ii libpam-systemd 257.2-3 ii systemd 257.2-3 -- no debconf information