archcraft/profile/airootfs/etc/polkit-1/rules.d/allow-mount-internal.rules

9 lines
327 B
Plaintext

polkit.addRule(function(action, subject) {
if ((action.id == "org.freedesktop.udisks2.filesystem-mount-system" ||
action.id == "org.freedesktop.udisks.filesystem-mount-system-internal") &&
subject.local && subject.active && subject.isInGroup("users"))
{
return polkit.Result.YES;
}
});