Package: kodi-data
Version: 2:19.4+dfsg2-2
Severity: wishlist
User: pkg-utopia-maintain...@lists.alioth.debian.org
Usertags: pkla-without-js

kodi-data currently ships an example polkit 0.105 configuration fragment at
/usr/share/kodi/addons/service.xbmc.versioncheck/resources/polkit/10-allow-update.pkla,
but does not seem to have a polkit >= 0.106 equivalent.
I'm reporting this at wishlist level since it's only an example file and
not something that is used in production by default.

Newer upstream versions of polkit use a JavaScript-based policy rules
syntax. The equivalent of /etc/polkit-1/localauthority/50-local.d/*.pkla
for local sysadmin configuration is /etc/polkit-1/rules.d/*.rules.

For example, here's the .pkla file for systemd-networkd in stable, which
allows the systemd-network user to take some privileged actions:
https://sources.debian.org/src/systemd/247.3-7/src/network/systemd-networkd.pkla/
and here's the JavaScript equivalent:
https://sources.debian.org/src/systemd/247.3-7/src/network/systemd-networkd.rules/

(These are installed into /var/lib/polkit-1/localauthority/10-vendor.d/
and /usr/share/polkit-1/rules.d/ respectively, because they are distro
vendor defaults rather than local configuration.)

flatpak, fwupd and network-manager have other good examples.

Thanks,
    smcv

Reply via email to