Permissions, shutdown route
This commit is contained in:
parent
15d0d174a9
commit
ac01c03094
4 changed files with 31 additions and 1 deletions
|
|
@ -107,7 +107,8 @@
|
|||
security.polkit.extraConfig = ''
|
||||
polkit.addRule(function(action, subject) {
|
||||
if ((action.id == "org.freedesktop.systemd1.manage-units" ||
|
||||
action.id == "org.freedesktop.login1.reboot") &&
|
||||
action.id == "org.freedesktop.login1.reboot" ||
|
||||
action.id == "org.freedesktop.login1.power-off") &&
|
||||
subject.user == "server-dash-api") {
|
||||
return polkit.Result.YES;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue