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



commit 04325119859b9eb41c9db97f1c315f3c9ab3d95b
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]