diff options
Diffstat (limited to 'source/a/udisks2/20-plugdev-group-mount-override.rules')
-rw-r--r-- | source/a/udisks2/20-plugdev-group-mount-override.rules | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/source/a/udisks2/20-plugdev-group-mount-override.rules b/source/a/udisks2/20-plugdev-group-mount-override.rules new file mode 100644 index 00000000..c47a66cf --- /dev/null +++ b/source/a/udisks2/20-plugdev-group-mount-override.rules @@ -0,0 +1,16 @@ +/* http://udisks.freedesktop.org/docs/latest/udisks-polkit-actions.html */ + +polkit.addRule(function(action, subject) { + if (action.id == "org.freedesktop.udisks2.filesystem-mount" && + subject.isInGroup("plugdev")) { + return polkit.Result.YES; + } +}); + +polkit.addRule(function(action, subject) { + if (action.id == "org.freedesktop.udisks2.eject-media" && + subject.isInGroup("plugdev")) { + return polkit.Result.YES; + } +}); + |