Files
NODEDC_MISSION_CORE/apps/node-agent/packaging/50-mission-core-node-power.rules

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