[gvfs/wip/oholy/admin-authorization-fix: 2/2] admin: Add comment to .rules file



commit a7d1bd5ccaa7d8cdfa75d6aeeb9a5447fa3a1819
Author: Ondrej Holy <oholy redhat com>
Date:   Fri Jan 4 12:58:27 2019 +0100

    admin: Add comment to .rules file
    
    Add comment to polkit org.gtk.vfs.file-operations.rules file explaining
    the rule which allows starting gvfsd-admin without password for users
    belonging to wheel group.

 daemon/org.gtk.vfs.file-operations.rules | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/daemon/org.gtk.vfs.file-operations.rules b/daemon/org.gtk.vfs.file-operations.rules
index fb8d54ae..b19147ca 100644
--- a/daemon/org.gtk.vfs.file-operations.rules
+++ b/daemon/org.gtk.vfs.file-operations.rules
@@ -1,3 +1,7 @@
+// Allows users belonging to wheel group to start gvfsd-admin without
+// authorization. This prevents two authorization requests in a row during
+// the first use. The other requests are caused by the different action used by
+// all gvfsd-admin operations.
 polkit.addRule(function(action, subject) {
         if ((action.id == "org.gtk.vfs.file-operations-helper") &&
             subject.local &&


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