[gnome-initial-setup/75-remove-unneeded-privs-in-polkit-rules] polkit: drop some unneeded actions



commit 70b238a48f84f5f8f57de54117416f662de75655
Author: Will Thompson <will willthompson co uk>
Date:   Mon Aug 19 11:39:00 2019 +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 | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/data/20-gnome-initial-setup.rules b/data/20-gnome-initial-setup.rules
index 48da882..62d9e31 100644
--- a/data/20-gnome-initial-setup.rules
+++ b/data/20-gnome-initial-setup.rules
@@ -9,15 +9,13 @@ 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.packagekit.system-sources-configure') === 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('org.freedesktop.realmd.') === 0);
 
     if (actionMatches) {
         if (subject.local)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]