zoneminder/misc/com.zoneminder.systemctl.ru...

8 lines
201 B
Plaintext
Raw Normal View History

2014-08-10 21:47:11 +08:00
polkit.addRule(function(action, subject) {
if (action.id == "com.zoneminder.policykit.pkexec.run-zmsystemctl" &&
subject.user != "@WEB_USER@") {
return polkit.Result.NO;
}
});