[gnome-initial-setup/75-remove-unneeded-privs-in-polkit-rules: 205/205] polkit: drop some unneeded actions
- From: Will Thompson <wjt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup/75-remove-unneeded-privs-in-polkit-rules: 205/205] polkit: drop some unneeded actions
- Date: Fri, 26 Jun 2020 14:06:49 +0000 (UTC)
commit 305067760d2aed57f271d8623ae5980017fe3a02
Author: Will Thompson <wjt endlessm com>
Date: Fri Jun 26 15:06:12 2020 +0100
polkit: drop some unneeded actions
Both `org.freedesktop.udisks2.filesystem-mount-system` and
`org.freedesktop.RealtimeKit1.*` have been here since this file was
introduced in 2c1bf13ab27a17509890a15bc6de13fe54816c0c, with the
following note in the commit message:
> The .rules was ported from the associated .pkla file from gdm as well.
I can't actually find a `.pkla` file in gdm's history, although I
haven't looked very hard. These actions are not used by
gnome-initial-setup today; remove them.
Closes #75
data/20-gnome-initial-setup.rules | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/data/20-gnome-initial-setup.rules b/data/20-gnome-initial-setup.rules
index 514aa8ac..33d7e300 100644
--- a/data/20-gnome-initial-setup.rules
+++ b/data/20-gnome-initial-setup.rules
@@ -9,14 +9,12 @@ polkit.addRule(function(action, subject) {
if (subject.user !== 'gnome-initial-setup')
return undefined;
- var actionMatches = (action.id === 'org.freedesktop.udisks2.filesystem-mount-system' ||
- action.id.indexOf('org.freedesktop.hostname1.') === 0 ||
+ 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('org.freedesktop.RealtimeKit1.') === 0 ||
action.id.indexOf('com.endlessm.ParentalControls.') === 0);
if (actionMatches) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]