zoneminder/distros/redhat/nginx/com.zoneminder.systemctl.ru...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
196 B
Plaintext
Raw Normal View History

2018-11-18 00:45:08 +08:00
polkit.addRule(function(action, subject) {
if (action.id == "com.zoneminder.policykit.pkexec.run-zmsystemctl" &&
subject.user != "nginx") {
return polkit.Result.NO;
}
});