From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YOndMtVQlGCNQwEAgWs5BA (envelope-from ) for ; Thu, 06 May 2021 22:25:57 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id iE5uLtVQlGDuEwAAbx9fmQ (envelope-from ) for ; Thu, 06 May 2021 20:25:57 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2216627B4A for ; Thu, 6 May 2021 22:25:57 +0200 (CEST) Received: from localhost ([::1]:34210 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lekZI-00061Q-9q for larch@yhetil.org; Thu, 06 May 2021 16:25:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57616) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lekYQ-0005Tm-Sn for bug-guix@gnu.org; Thu, 06 May 2021 16:25:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56177) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lekYQ-0003WM-Lp for bug-guix@gnu.org; Thu, 06 May 2021 16:25:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lekYQ-0007ew-Ib for bug-guix@gnu.org; Thu, 06 May 2021 16:25:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#48265: mate-power-backlight-helper is referred to by store name instead of polkit action (IIUC) Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 06 May 2021 20:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48265 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 48265@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.162033270029416 (code B ref -1); Thu, 06 May 2021 20:25:02 +0000 Received: (at submit) by debbugs.gnu.org; 6 May 2021 20:25:00 +0000 Received: from localhost ([127.0.0.1]:39488 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lekYO-0007eO-Gx for submit@debbugs.gnu.org; Thu, 06 May 2021 16:25:00 -0400 Received: from lists.gnu.org ([209.51.188.17]:34584) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lekYM-0007eI-VQ for submit@debbugs.gnu.org; Thu, 06 May 2021 16:24:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57604) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lekYM-0005PY-I0 for bug-guix@gnu.org; Thu, 06 May 2021 16:24:58 -0400 Received: from andre.telenet-ops.be ([2a02:1800:120:4::f00:15]:40840) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lekYK-0003PC-5d for bug-guix@gnu.org; Thu, 06 May 2021 16:24:58 -0400 Received: from ptr-bvsjgyjmffd7q9timvx.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:aaf1:9810:a0b8:a55d]) by andre.telenet-ops.be with bizsmtp id 1YQr250020mfAB401YQr8R; Thu, 06 May 2021 22:24:51 +0200 Message-ID: <28db052034ca1e3029bb3dc0aa9f87de2af6bdec.camel@telenet.be> From: Maxime Devos Date: Thu, 06 May 2021 22:24:43 +0200 Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-TdMmiUY/F/MW0AxiIe4N" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21; t=1620332691; bh=5DKRHfDNBg5qR2CeEWNOsoxbqEphs5lvzTG/SU2S0R8=; h=Subject:From:To:Date; b=LSv/1L3jMeH4oZJ1GP7kQ3gS9kkkymOVXPDd7KvY1E6kBaaXt2M6/0Gy7YXYp8pep Tl4e74G4rBQiC8+/a5BwcpoYqjxQAHf2IfEiLB6PCZXbmBcT9piBQU6J+/Mp9KBsKb +hBvDhpnmrVYWJ4EGZlv84fhCowbu3Dy9r7dn3cgYe+hELqW+DCNtusMNpk6hn9+rY ieSHPaMVSznU8Ax7AVZmQaJT7ozYH+0EFd55ylqQdg0E9kRdiH6Ouv6kt/+/OWpxTY ncW/bT4VDqN7YcC9oAECsIDeK+62oVZ5rQY+L/9YhfeURlEMRIIkJqxJny1uJx2YJ+ V2sUjWVAtILEg== Received-SPF: pass client-ip=2a02:1800:120:4::f00:15; envelope-from=maximedevos@telenet.be; helo=andre.telenet-ops.be X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1620332757; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=5DKRHfDNBg5qR2CeEWNOsoxbqEphs5lvzTG/SU2S0R8=; b=remnX1q2pU9LXaiYRYv3fiZS/jTALkgP+zTSE3VLLfjCnM9AIn7mJNgkt7iiVBoJpuunB1 62O1U7u6wh2eDRuLxKzdp9CMp+ThwcRftySRMZGh5wtuyzT7VKQqlOCwFAGPYYLxrpNTiw B9d+aM4vwHPWL8jsGU3OYbowJmmaso+io0CdeQKlPIwhof0heTsoYMNQS1KXkdn4cwICg7 s9PehPVepceU5UjVyU2QLB5Qo/Gn/Ik8HlgjcqB4z/kQ0+dNKK/2rBSlfltliw3omkXdi4 HyQBu/Bn0UDai9vwj9AVD+1zdQFrsDv9aYc7dLvW63WPWuHe1z3QZ4Eju2ctow== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620332757; a=rsa-sha256; cv=none; b=mdib1V4s9cOAl1rYlFVZ3Lwuh46AYb3mfuJSuOb6K0CdMEZqzS5M6u1EO7okQLocd7ILQZ gVcTjSZQhl6Vqmg7YJ0iUC2j2i8i+mVu6DeHK/Ayuvw+37RDvU+P6HgKzIvzydBh+WHIk/ 5dkPZ7h4oqJNw+c1mSSSHmWoWnob9iFKZwFX5vh+C2ijBhkuC04ZSY37HhOAyaTyLGfQtT odkgyw+NpGl0pZDOQOo79Ukyt9bQS7p+7dOtqjcG9F1a47nI8iypr2q7c9Thxbdryf1wf7 QS0xoginyUYSR+dUir69on2WTJpzP5SltdkSC2JtxGTQYCVdA5HCuyerD566SQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b="LSv/1L3j"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.96 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b="LSv/1L3j"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 2216627B4A X-Spam-Score: -1.96 X-Migadu-Scanner: scn0.migadu.com X-TUID: RGjTPCP3W1fB --=-TdMmiUY/F/MW0AxiIe4N Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Related to: https://issues.guix.gnu.org/22952 On a mate desktop (mate-desktop-service-type). FN-F9, FN-F10 (binded to =E2=80=98decrease brightness=E2=80=99 and =E2=80= =98increase brightness=E2=80=99): > Authentication is needed to run '/gnu/store/mp33h4vqdw0scdkjj0v6c3gima9wz= 8lm-mate-power-manager-1.24.2/sbin/mate-power-backlight-helper' as the supe= r user. Contents of /etc/polkit-1/actions/org.mate.power.policy: [...] battery Modify the laptop brightness Authentication is required to modify the laptop brightness no no yes /gnu/store/zk4kb4= 437032swahywmgyzn55b5w5wj8-mate-power-manager-1.24.2/sbin/mate-power-backli= ght-help> [...] FWIW, the following works as expected (no error message), using the store p= ath in .policy: $ pkexec /gnu/store/zk4kb4437032swahywmgyzn55b5w5wj8-mate-power-manager-1.2= 4.2/sbin/mate-power-backlight-helper --set-brightness=3D300 Maybe MATE is trying the equivalent of "pkexec /wrong/store/path/mate-power= -backlight-helper --etcetera" instead of referring to the action by name org.mate.power.backlight-helper. Note the store path is different. Now try something different $ which mate-power-backlight-helper > /run/current-system/profile/sbin/mate-power-backlight-helper $ ls -l /run/current-system/profile/sbin/mate-power-backlight-helper > /gnu/store/ffqhy4xdpzkg06rlq76zrbwn8v3rqgw9-mate-1.24.1/sbin/mate-power-b= acklight-helper Now we have three different store paths so far! Not sure what the proper way to resolve this, and what causes the three dif= ferent store paths, but one way to resolve this would be referring to /run/current-system/profi= le/sbin/mate-power-backlight-helper in org.mate.power.policy (untested!). It looks like there could very well be be similar issues in (unverified): * /etc/polkit-1/actions/org.gnome.controlcenter.remote-login-helper.policy * /etc/polkit-1/actions/org.gnome.gnome-system-monitor.policy * /etc/polkit-1/actions/org.gnome.settings-daemon.plugins.power.policy * /etc/polkit-1/actions/org.gnome.settings-daemon.plugins.wacom.policy * grep for /gnu/store/ in /etc/polkit-1/actions/*.policy Greetings, Maxime. --=-TdMmiUY/F/MW0AxiIe4N Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYJRQixccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7tQ5AP9f0eQ7QbmZyyYbxsWTg3nG+aWP FyDRRJgD1g0lHotoWQEAk9VioOFO+RCktwrY+qSWh5sva9etg4CMVSGlNGArewk= =z1Gt -----END PGP SIGNATURE----- --=-TdMmiUY/F/MW0AxiIe4N--