all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Robby Zambito <contact@robbyzambito.me>
To: Robby Zambito <contact@robbyzambito.me>
Cc: help-guix <help-guix@gnu.org>
Subject: Re: Adding PolicyKit actions
Date: Tue, 30 May 2023 14:21:27 -0400	[thread overview]
Message-ID: <874jnt656y.fsf@robbyzambito.me> (raw)
In-Reply-To: <87edmyhoh9.fsf@robbyzambito.me>


Robby Zambito <contact@robbyzambito.me> writes:

> ```
> (service polkit-service-type
> 	 (polkit-configuration
> 	  (actions (list
> 		    (plain-file "org.spice-space.lowlevelusbaccess.policy"
> 				     "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
> <!DOCTYPE policyconfig PUBLIC
>           \"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN\"
>           \"http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd\">
> <policyconfig>
>
>   <vendor>The Spice Project</vendor>
>   <vendor_url>http://spice-space.org/</vendor_url>
>   <icon_name>spice</icon_name>
>
>   <action id=\"org.spice-space.lowlevelusbaccess\">
>     <description>Low level USB device access</description>
>     <message>Privileges are required for low level USB device access (for usb device pass through).</message>
>     <defaults>
>       <allow_any>yes</allow_any>
>       <allow_inactive>no</allow_inactive>
>       <allow_active>yes</allow_active>
>     </defaults>
>   </action>
>
> </policyconfig>")))))
> ```

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.


      parent reply	other threads:[~2023-05-31 11:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-29 20:27 Adding PolicyKit actions Robby Zambito
2023-05-29 22:09 ` Felix Lechner via
2023-05-29 22:19   ` Robby Zambito
2023-05-30 18:21 ` Robby Zambito [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874jnt656y.fsf@robbyzambito.me \
    --to=contact@robbyzambito.me \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.