blob: 19a44fa87d05687a93860bd4fc109a8761860620 (
plain)
1
2
3
4
5
6
7
8
|
/* Allow users in 'ego-users' group to invoke commands as 'ego' */
polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.machine1.host-shell" &&
action.lookup("user") == "ego" &&
subject.isInGroup("ego-users")) {
return polkit.Result.YES;
}
});
|