simple typo in a different rule causes everything else to fail
Submitted by mue..@..il.com
Assigned to David Zeuthen @david
Description
I just created 2 rules for udisks and NetworkManager (with priority 10 and 11), in both I had the same typo with "Action":
polkit.addRule(function(Action, subject) {
if (action.id == ...) {
return polkit.Result.YES;
}
});
Result: For some reason I can't shutdown/suspend/hibernate but only logout. I have no other rules but '50-default.rules': polkit.addAdminRule(function(action, subject) { return ["unix-group:wheel"]; });
Things I find problematic: 1. I can't find the error source anywhere. (Are there logs or error messages?) 2. Why does a single wrong rule affect all others? (did the JavaScript interpreter crash?)