summarylogtreecommitdiffstats
path: root/spack.pkaction
diff options
context:
space:
mode:
authorGuillaume Dollé2019-10-03 11:10:10 +0200
committerGuillaume Dollé2019-10-13 13:57:10 +0200
commit9beca457e0241719924063b76b1cfd14557bfa05 (patch)
treea316c0cbe9fc3aa063376d91d1b7685b438c63e9 /spack.pkaction
parent34f0ee864983c5cbd06d574d05742d7c7a274f42 (diff)
downloadaur-9beca457e0241719924063b76b1cfd14557bfa05.tar.gz
Add polkit usage
Spack should be run as user (spack:spack). Changelog: - Add polkit config - Add spack user/group - Add script to run spack via pkexec (move origin bin directory to libexec) - Fix directory permission
Diffstat (limited to 'spack.pkaction')
-rw-r--r--spack.pkaction18
1 files changed, 18 insertions, 0 deletions
diff --git a/spack.pkaction b/spack.pkaction
new file mode 100644
index 000000000000..e6ef88d6b7ea
--- /dev/null
+++ b/spack.pkaction
@@ -0,0 +1,18 @@
+<?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/policyconfig.dtd">
+<policyconfig>
+ <action id="org.archlinux.pkexec.spack">
+ <message>Authentication is required to run spack</message>
+ <icon_name>spack</icon_name>
+ <defaults>
+ <allow_any>auth_admin</allow_any>
+ <allow_inactive>auth_admin</allow_inactive>
+ <allow_active>auth_admin</allow_active>
+ </defaults>
+ <annotate key="org.freedesktop.policykit.exec.path">/opt/spack/libexec/spack</annotate>
+ <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
+ </action>
+</policyconfig>
+