Добавлено правило polkit-1 разрешающее выключать, перезагружать и т.д. при наличии других пользователей в сеансеmhiretskiy
parent
7963fedc64
commit
1b11b35dc1
@ -1 +1 @@
|
||||
# Calculate path=/etc/polkit-1 chown=polkitd:root chmod=700 ini(container.type)==desktop
|
||||
# Calculate path=/etc/polkit-1 chown=polkitd:root chmod=700
|
||||
|
@ -0,0 +1,14 @@
|
||||
# Calculate comment=// ini(container.type)!=desktop
|
||||
// Stop, restart, suspend, hybernate for multiple users
|
||||
//
|
||||
|
||||
polkit.addRule(function(action, subject) {
|
||||
if ((action.id == "org.freedesktop.consolekit.system.stop-multiple-users" ||
|
||||
action.id == "org.freedesktop.consolekit.system.restart-multiple-users" ||
|
||||
action.id == "org.freedesktop.consolekit.system.suspend-multiple-users" ||
|
||||
action.id == "org.freedesktop.consolekit.system.hibernate-multiple-users" ||
|
||||
action.id == "org.freedesktop.consolekit.system.hybridsleep-multiple-users") &&
|
||||
subject.active) {
|
||||
return polkit.Result.YES;
|
||||
}
|
||||
});
|
Loading…
Reference in new issue