aboutsummaryrefslogtreecommitdiff
path: root/aux/79-fprintd.rules
blob: 5b03f07b3c8cee45b09e59575d7cab5c777c8768 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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;
   }
});
bgstack15