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



commit fb7bae6e4fd5c03828bc01f584b118d38821af5b
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 | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/daemon/org.gtk.vfs.file-operations.rules b/daemon/org.gtk.vfs.file-operations.rules
index fb8d54ae..6e528e93 100644
--- a/daemon/org.gtk.vfs.file-operations.rules
+++ b/daemon/org.gtk.vfs.file-operations.rules
@@ -1,3 +1,8 @@
+// Allows users belonging to wheel group to start gvfsd-admin without
+// authorization. This prevents redundant password prompt when starting
+// gvfsd-admin. The gvfsd-admin causes another password prompts to be shown
+// for each client process using the different action id and for the subject
+// based on the client process.
 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]