mirror of
git://slackware.nl/current.git
synced 2025-01-12 08:03:03 +01:00
17 lines
461 B
Text
17 lines
461 B
Text
/* 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;
|
|||
}
|
|||
});
|
|||
|