wok-next annotate polkit/stuff/10-udisks2.rules @ rev 20042
pigz, pxe-kexec: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Oct 22 20:53:07 2017 +0200 (2017-10-22) |
parents | |
children |
rev | line source |
---|---|
al@19863 | 1 // See the polkit(8) man page for more information |
al@19863 | 2 // about configuring polkit. |
al@19863 | 3 |
al@19863 | 4 // Allow udisks2 to mount devices without authentication |
al@19863 | 5 // for users in the "disk" group. |
al@19863 | 6 |
al@19863 | 7 polkit.addRule(function(action, subject) { |
al@19863 | 8 if ((action.id == "org.freedesktop.udisks2.filesystem-mount-system" || |
al@19863 | 9 action.id == "org.freedesktop.udisks2.filesystem-mount") && |
al@19863 | 10 subject.isInGroup("disk")) { |
al@19863 | 11 return polkit.Result.YES; |
al@19863 | 12 } |
al@19863 | 13 }); |