diff options
author | B. Stack <bgstack15@gmail.com> | 2024-09-24 19:57:24 -0400 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2024-09-24 19:57:24 -0400 |
commit | 0f9ad0d0b810def89705d4c7fbbff962b16ba4c4 (patch) | |
tree | 3061220ed78cfe4f4c137e5973c451dd307f1bca /aux/79-fprintd.rules | |
parent | add image to readme (diff) | |
download | fprintd-tk-master.tar.gz fprintd-tk-master.tar.bz2 fprintd-tk-master.zip |
Diffstat (limited to 'aux/79-fprintd.rules')
-rw-r--r-- | aux/79-fprintd.rules | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/aux/79-fprintd.rules b/aux/79-fprintd.rules new file mode 100644 index 0000000..5b03f07 --- /dev/null +++ b/aux/79-fprintd.rules @@ -0,0 +1,22 @@ +/* +.. File: 80-fprintd.rules +*/ +polkit.addRule(function(action, subject) { + if (( + action.id.match("net.reactivated.fprint.device.enroll") || + action.id.match("net.reactivated.fprint.device.verify") + ) && subject.active) { + polkit.log("action=" + action); + polkit.log("subject=" + subject); + return polkit.Result.YES; + } +}); +polkit.addRule(function(action, subject) { + if (( + action.id.match("net.reactivated.fprint.device.setusername") + ) && subject.active && subject.isInGroup("admins")) { + polkit.log("action=" + action); + polkit.log("subject=" + subject); + return polkit.Result.YES; + } +}); |