Skip to content

Commit

Permalink
fix: allow wheel group users to access yubikeys
Browse files Browse the repository at this point in the history
  • Loading branch information
NiHaiden committed Jan 29, 2025
1 parent 5c4c499 commit b9755c6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 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,13 @@

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 b9755c6

Please sign in to comment.