aboutsummaryrefslogtreecommitdiff
path: root/aux
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2024-09-24 16:11:26 -0400
committerB. Stack <bgstack15@gmail.com>2024-09-24 16:11:26 -0400
commitf5390f91104ca5c531a1e778ecfafadc0a668075 (patch)
tree8844dcc45c58483090f10aa55cf7acb89ce6fe26 /aux
parentadd advanced pane which lets you control other users (diff)
downloadfprintd-tk-f5390f91104ca5c531a1e778ecfafadc0a668075.tar.gz
fprintd-tk-f5390f91104ca5c531a1e778ecfafadc0a668075.tar.bz2
fprintd-tk-f5390f91104ca5c531a1e778ecfafadc0a668075.zip
add verbose, advanced (control other users), docs
Diffstat (limited to 'aux')
-rw-r--r--aux/80-fprintd.rules29
1 files changed, 29 insertions, 0 deletions
diff --git a/aux/80-fprintd.rules b/aux/80-fprintd.rules
new file mode 100644
index 0000000..1da22cf
--- /dev/null
+++ b/aux/80-fprintd.rules
@@ -0,0 +1,29 @@
+/*
+.. File: 80-fprintd.rules
+.. Startdate: 2023-01-12-5 15:59
+.. History:
+.. 2024-09-24 updated for current correctness required
+.. Purpose: replaced fprintd.pkla for bgconf 0.1.34
+.. Origin: placed by fingerprint-scanner.sh
+*/
+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;
+ }
+});
bgstack15