Skip to content

Commit

Permalink
fix: allow wheel users to access yubikeys (#2163)
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Garrison <[email protected]>
  • Loading branch information
rothgar authored Jan 30, 2025
1 parent 84b99f4 commit 841d877
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions system_files/shared/usr/share/polkit-1/rules.d/99-pcscd.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
polkit.addRule(function(action, subject) {
if (action.id == "org.debian.pcsc-lite.access_card" &&
subject.isInGroup("wheel")) {
return polkit.Result.YES;
}
});
polkit.addRule(function(action, subject) {
if (action.id == "org.debian.pcsc-lite.access_pcsc" &&
subject.isInGroup("wheel")) {
return polkit.Result.YES;
}
});

0 comments on commit 841d877

Please sign in to comment.