52 lines
2.1 KiB
Diff
52 lines
2.1 KiB
Diff
From d5f1a3c01aee9249a3ba6fea15fcea43eb690ed1 Mon Sep 17 00:00:00 2001
|
|
From: Ray Strode <rstrode@redhat.com>
|
|
Date: Sun, 13 Aug 2023 16:33:49 -0400
|
|
Subject: [PATCH 11/12] polkit: Add fedora specfic rules
|
|
|
|
We should probably add some way to check vendor.conf for the policy
|
|
updates instead of a hardcoded list.
|
|
---
|
|
data/20-gnome-initial-setup.rules.in | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/data/20-gnome-initial-setup.rules.in b/data/20-gnome-initial-setup.rules.in
|
|
index 881efde9..f5b7d981 100644
|
|
--- a/data/20-gnome-initial-setup.rules.in
|
|
+++ b/data/20-gnome-initial-setup.rules.in
|
|
@@ -1,30 +1,31 @@
|
|
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
|
|
//
|
|
// DO NOT EDIT THIS FILE, it will be overwritten on update.
|
|
//
|
|
// Allow the gnome-initial-setup user to do certain actions without
|
|
// being interrupted by password dialogs
|
|
|
|
polkit.addRule(function(action, subject) {
|
|
if (subject.user !== 'gnome-initial-setup')
|
|
return undefined;
|
|
|
|
var actionMatches = (action.id.indexOf('org.freedesktop.hostname1.') === 0 ||
|
|
action.id.indexOf('org.freedesktop.NetworkManager.') === 0 ||
|
|
action.id.indexOf('org.freedesktop.locale1.') === 0 ||
|
|
action.id.indexOf('org.freedesktop.accounts.') === 0 ||
|
|
action.id.indexOf('org.freedesktop.timedate1.') === 0 ||
|
|
action.id.indexOf('org.freedesktop.realmd.') === 0 ||
|
|
action.id.indexOf('com.endlessm.ParentalControls.') === 0 ||
|
|
action.id.indexOf('org.fedoraproject.thirdparty.') === 0 ||
|
|
- action.id.indexOf('org.freedesktop.login1.reboot') === 0);
|
|
+ action.id.indexOf('org.freedesktop.login1.reboot') === 0 ||
|
|
+ action.id.indexOf('org.fedoraproject.pkexec.liveinst') === 0);
|
|
|
|
if (actionMatches) {
|
|
if (subject.local)
|
|
return 'yes';
|
|
else
|
|
return 'auth_admin';
|
|
}
|
|
|
|
return undefined;
|
|
});
|
|
--
|
|
2.41.0
|
|
|