This didn't work for me:
sudo apt install opensc-pkcs11
sudo snap refresh --edge firefox
sudo snap connect firefox:pcscd
cp /usr/lib/*/opensc-pkcs11.so $HOME/snap/firefox/common
I need to use a proprietary module, called libaetpkss.so.3.5.4112, from
safesign. It works in chrome (deb), and used to work in un-snapped
firefox.
I changed the steps above to copy that module instead of opensc-pkcs11
to the snap/firefox/common directory. I then try to load it from
firefox, but it then says "unable to load module". Nothing in
dmesg/apparmor, and the ownership of the file is correct.
This module needs old libraries, like openssl1 and gdbm_compat.so.3,
which I have in /usr/lib/*. Mayube I need to copy these over too?
$ ldd libaetpkss.so.3.5.4112
linux-vdso.so.1 (0x00007ffd31bfe000)
libcrypto.so.1.0.0 => /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
(0x000073f12aa00000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x000073f12b8c4000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x000073f12b8bf000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x000073f12b8ba000)
libpcsclite.so.1 => /lib/x86_64-linux-gnu/libpcsclite.so.1
(0x000073f12b8ae000)
libgdbm_compat.so.3 => /lib/x86_64-linux-gnu/libgdbm_compat.so.3
(0x000073f12a400000)
libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6
(0x000073f12a000000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1
(0x000073f12b87f000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x000073f129c00000)
/lib64/ld-linux-x86-64.so.2 (0x000073f12b8df000)
libgdbm.so.3 => /lib/x86_64-linux-gnu/libgdbm.so.3 (0x000073f129600000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x000073f12b794000)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1967632
Title:
[snap] apparmor denied when trying to load pkcs11 module for smart
card authentication
To manage notifications about this bug go to:
https://bugs.launchpad.net/firefox/+bug/1967632/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs