From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: make polkit work Date: Mon, 24 Nov 2014 15:31:53 +0100 Message-ID: <878uj01xgm.fsf@gnu.org> References: <87vbm46afh.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56111) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XsugP-00006i-JU for guix-devel@gnu.org; Mon, 24 Nov 2014 09:32:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XsugG-00012o-Jx for guix-devel@gnu.org; Mon, 24 Nov 2014 09:32:05 -0500 Received: from hera.aquilenet.fr ([2a01:474::1]:38383) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XsugG-00012c-E7 for guix-devel@gnu.org; Mon, 24 Nov 2014 09:31:56 -0500 In-Reply-To: <87vbm46afh.fsf@gmail.com> (=?utf-8?B?IuWui+aWh+atpiIncw==?= message of "Mon, 24 Nov 2014 20:38:10 +0800") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: =?utf-8?B?5a6L5paH5q2m?= Cc: guix-devel@gnu.org =E5=AE=8B=E6=96=87=E6=AD=A6 skribis: > IIUC, our `polkit' can't see actions/rules from other packages. > In NixOS[0], the hardcoded "${out}/share/polkit-1" is overwrited to > "/var/run/current-system/sw/share/polkit-1", provided by system > packages. > Instead of take a similar path,=20 > can we make "a proper patch which will be accepted upstream"? Yes, I think it would best to have it honor $POLKIT_RULES_PATH and $POLKIT_ACTIONS_PATH. Apparently this would have to be done in src/polkitbackend/polkitbackendjsauthority.c and src/polkitbackend/polkitbackendinteractiveauthority.c. Could you try to do this? Once we have this patch, we can start using it, and submit it upstream for inclusion. > The goal: (polkit-service (list udisks)) Yes, that sounds like the right approach. Thanks for looking into this! Ludo=E2=80=99.