1 |
commit: 05d3853edc7e577afada48a73837199a08773ef2 |
2 |
Author: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Mar 1 15:51:31 2022 +0000 |
4 |
Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Mar 1 15:53:23 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/releng.git/commit/?id=05d3853e |
7 |
|
8 |
specs/amd64/livegui: add polkit exceptions for partition tools |
9 |
|
10 |
Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org> |
11 |
|
12 |
releases/specs/amd64/livegui/files/fsscript-stage2.sh | 13 +++++++++++++ |
13 |
1 file changed, 13 insertions(+) |
14 |
|
15 |
diff --git a/releases/specs/amd64/livegui/files/fsscript-stage2.sh b/releases/specs/amd64/livegui/files/fsscript-stage2.sh |
16 |
index 5656bd3c..32931eb6 100755 |
17 |
--- a/releases/specs/amd64/livegui/files/fsscript-stage2.sh |
18 |
+++ b/releases/specs/amd64/livegui/files/fsscript-stage2.sh |
19 |
@@ -48,3 +48,16 @@ wget "https://dev.gentoo.org/~bkohler/livegui/face.icon.png" -O .face.icon |
20 |
popd |
21 |
# Clean up perms |
22 |
chown -R gentoo:users /home/gentoo |
23 |
+ |
24 |
+# Let some tools run as root |
25 |
+echo "polkit.addRule(function(action, subject) { |
26 |
+ if (action.id == "org.gnome.gparted") { |
27 |
+ return polkit.Result.YES; |
28 |
+ } |
29 |
+}); |
30 |
+ |
31 |
+polkit.addRule(function(action, subject) { |
32 |
+ if (action.id == "org.kde.kpmcore.externalcommand.init") { |
33 |
+ return polkit.Result.YES; |
34 |
+ } |
35 |
+});" > /etc/polkit-1/rules.d/livegui-root-tools.rules |