From 0f9ad0d0b810def89705d4c7fbbff962b16ba4c4 Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Tue, 24 Sep 2024 19:57:24 -0400 Subject: dpkg build recipe and assets --- aux/79-fprintd.rules | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 aux/79-fprintd.rules (limited to 'aux/79-fprintd.rules') 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; + } +}); -- cgit