Is your feature request related to a problem or specific use case? Please describe.
On recent debian/ubuntu hosts, pcscd is compiled with policy kit support.
The proposed integration is not working because the UID used in the running ejbca container (10001) is not allowed to access to the pcscd socket
Describe the solution you'd like
/etc/polkit-1/rules.d/01-ejbca-container.rules
polkit.addRule(function(action, subject) {
if ((action.id == "org.debian.pcsc-lite.access_pcsc" ||
action.id == "org.debian.pcsc-lite.access_card") &&
subject.uid == 10001 ) {
return polkit.Result.YES;
}
});
Describe alternatives you've considered
Or disable policy kit support in pcscd: add "--disable-polkit" to PCSCD_ARGS in /etc/default/pcscd
Is your feature request related to a problem or specific use case? Please describe.
On recent debian/ubuntu hosts, pcscd is compiled with policy kit support.
The proposed integration is not working because the UID used in the running ejbca container (10001) is not allowed to access to the pcscd socket
Describe the solution you'd like
/etc/polkit-1/rules.d/01-ejbca-container.rules
polkit.addRule(function(action, subject) {
if ((action.id == "org.debian.pcsc-lite.access_pcsc" ||
action.id == "org.debian.pcsc-lite.access_card") &&
subject.uid == 10001 ) {
return polkit.Result.YES;
}
});
Describe alternatives you've considered
Or disable policy kit support in pcscd: add "--disable-polkit" to PCSCD_ARGS in /etc/default/pcscd