diff options
author | Ondrej Holy <oholy@redhat.com> | 2019-01-04 12:58:27 +0100 |
---|---|---|
committer | Ondrej Holy <oholy@redhat.com> | 2019-01-14 14:14:53 +0100 |
commit | 04325119859b9eb41c9db97f1c315f3c9ab3d95b (patch) | |
tree | 404c75bae34ae84cb841675d167c7c44db2a2bd6 | |
parent | d8d0c8c40049cfd824b2b90d0cd47914052b9811 (diff) | |
download | gvfs-04325119859b9eb41c9db97f1c315f3c9ab3d95b.tar.gz |
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.
-rw-r--r-- | daemon/org.gtk.vfs.file-operations.rules | 5 |
1 files changed, 5 insertions, 0 deletions
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 && |