mirror of
git://slackware.nl/current.git
synced 2024-12-28 09:59:53 +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;
|
||
|
}
|
||
|
});
|
||
|
|