diff options
author | Aliaksandr Stelmachonak | 2019-09-22 01:05:06 -0400 |
---|---|---|
committer | Aliaksandr Stelmachonak | 2019-09-22 01:05:06 -0400 |
commit | 37d1a568659acd9905d7817e595d4d9e3aaa9c14 (patch) | |
tree | 2a5b6bd3b4ff783f8d4966488dfb2799a77f514f /cros-nopasswd.rules | |
parent | c7e7892c7eb033e4faf8d868b2b3b9cf106a9bb1 (diff) | |
download | aur-37d1a568659acd9905d7817e595d4d9e3aaa9c14.tar.gz |
Updated to last version
Diffstat (limited to 'cros-nopasswd.rules')
-rw-r--r-- | cros-nopasswd.rules | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cros-nopasswd.rules b/cros-nopasswd.rules new file mode 100644 index 000000000000..2bfcf6916fa5 --- /dev/null +++ b/cros-nopasswd.rules @@ -0,0 +1,7 @@ +/* Allow users in wheel group to run commands without authentication */ +polkit.addRule(function(action, subject) { + if (action.id == "org.freedesktop.policykit.exec" && + subject.isInGroup("wheel")) { + return polkit.Result.YES; + } +}); |