From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id AJ2fMd8zd2R6MgAASxT56A (envelope-from ) for ; Wed, 31 May 2023 13:47:43 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id GPtlMd8zd2TzuAAA9RJhRA (envelope-from ) for ; Wed, 31 May 2023 13:47:43 +0200 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 3D12C38DE8 for ; Wed, 31 May 2023 13:47:43 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q4KIH-0001Cn-0B; Wed, 31 May 2023 07:47:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q4494-0006oD-JL for help-guix@gnu.org; Tue, 30 May 2023 14:32:34 -0400 Received: from relay1-d.mail.gandi.net ([2001:4b98:dc4:8::221]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q4492-0002Xt-AT for help-guix@gnu.org; Tue, 30 May 2023 14:32:34 -0400 X-GND-Sasl: contact@robbyzambito.me X-GND-Sasl: contact@robbyzambito.me Received: by mail.gandi.net (Postfix) with ESMTPSA id E702F240004; Tue, 30 May 2023 18:32:25 +0000 (UTC) References: <87edmyhoh9.fsf@robbyzambito.me> User-agent: mu4e 1.10.2; emacs 28.2 From: Robby Zambito To: Robby Zambito Cc: help-guix Subject: Re: Adding PolicyKit actions Date: Tue, 30 May 2023 14:21:27 -0400 In-reply-to: <87edmyhoh9.fsf@robbyzambito.me> Message-ID: <874jnt656y.fsf@robbyzambito.me> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2001:4b98:dc4:8::221; envelope-from=contact@robbyzambito.me; helo=relay1-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 31 May 2023 07:47:08 -0400 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1685533663; a=rsa-sha256; cv=none; b=H2W1KKkScaqOQkW2QlXB6kZyFkeSM0aHn/5ZjRIOO9lo/HP96+9Ua6ieHp/YS3Li3UFl6g +dYMgqccQZKVDSU9rw3jKJQ/Itj7P49L5WnfkUPFco+ZLQfYtQQ2amA8co6UqNhPgvd44I GpZRfv3XWj/BtHeeSxey5IS36AZwu/PxRieC71tBHUQuI2qVBmD0SD7z/MwPArslW5JweQ wtobUxyqO5VUs2mhGXI+vb+Eygv/vsQkL59Bk5rONvPojaFqWRfGWxUGQ8dglUF4OCac9/ O5CMez3nJICPDSeIixho8Wid9/vJ7BySk1J+OAT/ufQ1fS4a22OVUhMXm4gVYQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1685533663; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=BlH/9pmWi3THHgxjQCAAOo6aMjoyIVrFHFtlkMRCqvY=; b=Grhyk84dNXbnB0dylgSq10k4QiD0xwD3f/WFKTrusU4VQbR063IVlAXVldpEjtpz4wKi+n YyFn2ot4PGO1n9709BwuH+rcgpbeoL6fsoVc+/Lk6YE2MEG+3iCZM49HCZjhj6uHaORJja Eq2kEzmfq1HdMK+lO44eINnkAg6nsRzfMWILzh0VHDmTOZrpdDOYc7uQ6N1w99ovcGgqpB wKPiPCEYBxJRV+M/a0OlS3fg5GytE7rw3mFiZVKeZSXe0vllRhVuPFeZ9EFXoCbfVNZ9Og EslxLGPWANyVgtUlZZOyjdIkzHPH6ZPk14Zb2gy1oFEd8g3triRHVl0lBzB+Qw== Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -3.35 X-Spam-Score: -3.35 X-Migadu-Queue-Id: 3D12C38DE8 X-TUID: oUSXpoI1u32v Robby Zambito writes: > ``` > (service polkit-service-type > (polkit-configuration > (actions (list > (plain-file "org.spice-space.lowlevelusbaccess.policy" > " > \"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN\" > \"http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd\"> > > > The Spice Project > http://spice-space.org/ > spice > > > Low level USB device access > Privileges are required for low level USB device access (for usb device pass through). > > yes > no > yes > > > > "))))) > ``` Follow up on this: I am able to evaluate this `service` expression in `guix repl`. I am also able to use `,lower` and `,build` on the `plain-file` in the REPL. Building the system with an empty list for the actions works. Maybe this is a bug? It seems like this is the correct way to configure polkit actions from what I can find.