blob: 31d2dbe4f97bfb75071886a4d4ccb546a7674a80 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// Please put this file in /usr/share/polkit-1/rules.d/ if SSSD is running as
// unprivileged user '@SSSD_USER@' to allow access to the Smartcard via pcscd.
polkit.addRule(function(action, subject) {
if (action.id == "org.debian.pcsc-lite.access_card" &&
subject.user == "@SSSD_USER@") {
return polkit.Result.YES;
}
});
polkit.addRule(function(action, subject) {
if (action.id == "org.debian.pcsc-lite.access_pcsc" &&
subject.user == "@SSSD_USER@") {
return polkit.Result.YES;
}
});
|