// 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; } });