[Pkg-utopia-maintainers] Bug#1041228: policykit-1: Polkit fails if more than one rule is defined in /usr/local/share/polkit-1

Michael Biebl biebl at debian.org
Sun Jan 21 18:19:22 GMT 2024


Control: tags -1 + moreinfo

On Sat, 15 Jul 2023 14:35:37 -0700 Stepan Novotny <snovotill at gmail.com> 
wrote:
>    * What led up to the situation?
> I created /etc/polkit-1/rules.d/99-shutdown.rules and this worked fine:
> polkit.addRule(function(action, subject) {
>    if (action.id == 'org.freedesktop.login1.power-off-multiple-sessions' &&  subject.isInGroup('Debian-gdm'))
>    return polkit.Result.YES; else return polkit.Result.NOT_HANDLED;
> });
> 
> Then I added a second file /etc/polkit-1/rules.d/99-power-off.rules and both failed to work:
> polkit.addRule(function(action, subject) {
>    if (action.id == 'org.freedesktop.login1.reboot-multiple-sessions' &&  subject.isInGroup('Debian-gdm'))
>    return polkit.Result.YES; else return polkit.Result.NOT_HANDLED;
> });
> 
> I found that either one of the above files by itself works fine, but it fails if both files are present.

Can you post exact failure messages please?
What exactly did not work?
Maybe also provide a debug log of polkitd.

Michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-utopia-maintainers/attachments/20240121/fa4a5df8/attachment.sig>


More information about the Pkg-utopia-maintainers mailing list