Skip to content

Commit

Permalink
fix: add pcscd polkit rule for Yubikey access
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Garrison <[email protected]>
  • Loading branch information
rothgar committed Feb 12, 2024
1 parent 58dc41a commit 0ed3ab4
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// allow members of the wheel group to access gpg cards via pcscd service
// this is needed for access to yubikey devices
// installation details from https://github.com/drduh/YubiKey-Guide/issues/376

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 0ed3ab4

Please sign in to comment.