Skip to content

Commit 2f90710

Browse files
committed
allow some abroot commands for all users
These commands are harmless and can be allowed to anyone on the system.
1 parent 8f1258f commit 2f90710

File tree

2 files changed

+54
-21
lines changed

2 files changed

+54
-21
lines changed

includes.container/usr/share/polkit-1/actions/org.vanillaos.abroot-rollback-notifier.policy

Lines changed: 0 additions & 21 deletions
This file was deleted.
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE policyconfig PUBLIC
3+
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
4+
"http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd">
5+
<policyconfig>
6+
<vendor>Vanilla OS</vendor>
7+
<vendor_url>https://www.vanillaos.org/</vendor_url>
8+
<icon_name>package-x-generic</icon_name>
9+
<action id="org.vanillaos.abroot.rollback-notifier.check">
10+
<description>Check if it is possible to rollback the system</description>
11+
<message>Authentication is required to check if it is possible to rollback the system</message>
12+
<icon_name>package-x-generic</icon_name>
13+
<defaults>
14+
<allow_any>yes</allow_any>
15+
<allow_inactive>yes</allow_inactive>
16+
<allow_active>yes</allow_active>
17+
</defaults>
18+
<annotate key="org.freedesktop.policykit.exec.path">/usr/bin/abroot</annotate>
19+
<annotate key="org.freedesktop.policykit.exec.argv1">rollback</annotate>
20+
</action>
21+
<action id="org.vanillaos.abroot.upgrade">
22+
<description>Upgrade the root system</description>
23+
<message>Authentication is required to upgrade the system</message>
24+
<defaults>
25+
<allow_any>yes</allow_any>
26+
<allow_inactive>yes</allow_inactive>
27+
<allow_active>yes</allow_active>
28+
</defaults>
29+
<annotate key="org.freedesktop.policykit.exec.path">/usr/bin/abroot</annotate>
30+
<annotate key="org.freedesktop.policykit.exec.argv1">upgrade</annotate>
31+
</action>
32+
<action id="org.vanillaos.abroot.status">
33+
<description>Check the status of the root system</description>
34+
<message>Authentication is required to check the status of the system</message>
35+
<defaults>
36+
<allow_any>yes</allow_any>
37+
<allow_inactive>yes</allow_inactive>
38+
<allow_active>yes</allow_active>
39+
</defaults>
40+
<annotate key="org.freedesktop.policykit.exec.path">/usr/bin/abroot</annotate>
41+
<annotate key="org.freedesktop.policykit.exec.argv1">status</annotate>
42+
</action>
43+
<action id="org.vanillaos.abroot.help">
44+
<description>Get help for the abroot command</description>
45+
<message>Authentication is required to display the abroot help</message>
46+
<defaults>
47+
<allow_any>yes</allow_any>
48+
<allow_inactive>yes</allow_inactive>
49+
<allow_active>yes</allow_active>
50+
</defaults>
51+
<annotate key="org.freedesktop.policykit.exec.path">/usr/bin/abroot</annotate>
52+
<annotate key="org.freedesktop.policykit.exec.argv1">help</annotate>
53+
</action>
54+
</policyconfig>

0 commit comments

Comments
 (0)