[gnutls-help] Application Doesn't detect USB Token when started using a systemd script
Mandar Joshi
emailmandar at gmail.com
Fri May 19 01:39:32 CEST 2017
>
> I'll go through the link you provided to see if I can configure my
> system to grant access to the application started by the systemd start
> script. Is there a default that I can set so that everyone will have
> access to the USB Token connected to the system?
>
>
Added the rules, I can now start the application with "systemctl start ..."
The rules are in a file in /usr/share/polkit-1/rules.d
---------------------------------------------------------------------------------------------------
polkit.addRule(function(action, subject) {
if (action.id == "org.debian.pcsc-lite.access_pcsc" &&
subject.user == "mandar") {
return polkit.Result.YES;
}
});
polkit.addRule(function(action, subject) {
if (action.id == "org.debian.pcsc-lite.access_card" &&
action.lookup("reader") == 'FT ePass2003Auto 00 00' &&
subject.user == "mandar") {
return polkit.Result.YES; }
});
---------------------------------------------------------------------------------------------------
But when starting on boot,
ret = gnutls_pkcs11_obj_list_import_url4 return (...) gives
ret < 0
Have to debug this problem.
More information about the Gnutls-help
mailing list