10 lines
429 B
Plaintext
10 lines
429 B
Plaintext
// Installer-owned: only graceful host power-off for the unprivileged Node.
|
|
// Inhibitors, reboot and arbitrary systemd unit management are not granted.
|
|
polkit.addRule(function(action, subject) {
|
|
if (subject.user === "mission-core-node" &&
|
|
(action.id === "org.freedesktop.login1.power-off" ||
|
|
action.id === "org.freedesktop.login1.power-off-multiple-sessions")) {
|
|
return polkit.Result.YES;
|
|
}
|
|
});
|