[gnome-initial-setup] data: Update rules to allow access to localed and hostname



commit 845efffbc1dd39f39e46a673a51e05fc86d99693
Author: Michael Wood <michael g wood intel com>
Date:   Mon Jun 10 17:59:05 2013 +0100

    data: Update rules to allow access to localed and hostname
    
    Allow access to all methods on these services.

 data/20-gnome-initial-setup.rules |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/data/20-gnome-initial-setup.rules b/data/20-gnome-initial-setup.rules
index 826323c..5777887 100644
--- a/data/20-gnome-initial-setup.rules
+++ b/data/20-gnome-initial-setup.rules
@@ -10,7 +10,8 @@ polkit.addRule(function(action, subject) {
         return undefined;
 
     var actionMatches = (action.id === 'org.freedesktop.udisks2.filesystem-mount-system' ||
-                         action.id == 'org.freedesktop.set-locale' ||
+                         action.id.indexOf('org.freedesktop.hostname1.') === 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.RealtimeKit1.') === 0);


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