[snap] smart card reader no longer works
Bug #1843392 reported by
Andreas Pokorny
This bug report is a duplicate of:
Bug #1967632: [snap] apparmor denied when trying to load pkcs11 module for smart card authentication.
Edit
Remove
This bug affects 24 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mozilla Firefox |
Confirmed
|
Unknown
|
|||
chromium-browser (Ubuntu) |
In Progress
|
High
|
Nathan Teodosio | ||
firefox (Ubuntu) |
Confirmed
|
High
|
Unassigned |
Bug Description
chromium uses the Netscape Cryptographic Module to access smartcards for authentication purposes. This stopped working when switching to the snap version. Chromium would normally access the setup in ~/.pki/
The problem can be bypassed by manually launching chromium via: /snap/chromium/
tags: | added: snap |
description: | updated |
Changed in chromium-browser (Ubuntu): | |
assignee: | Olivier Tilloy (osomon) → anneputarunbharadwaj (anneputarunbharadwaj-123) |
Changed in chromium-browser (Ubuntu): | |
assignee: | anneputarunbharadwaj (anneputarunbharadwaj-123) → Olivier Tilloy (osomon) |
no longer affects: | firefox (Ubuntu) |
Changed in firefox (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → High |
Changed in chromium-browser (Ubuntu): | |
assignee: | Olivier Tilloy (osomon) → nobody |
Changed in firefox: | |
status: | Unknown → Confirmed |
Changed in chromium-browser (Ubuntu): | |
assignee: | nobody → Nathan Teodosio (nteodosio) |
status: | Confirmed → In Progress |
To post a comment you must log in.
This is similar to https:/ /forum. snapcraft. io/t/cant- load-security- device- in-firefox- snap/12471.
You probably already know that, but just in case: running /snap/chromium/ current/ usr/lib/ chromium- browser/ chrome directly results in bypassing the snapd sandbox, so it's never a good idea (other than for testing/debugging purposes).
The proposed approach to solve this that was discussed with the security team is: DATA/.local/ lib) pcscd/pcscd. comm
- stage common PKCS modules in the snap
- add a layout for /usr/lib/pkcs11 pointing to a writeable area of the snap (e.g. $SNAP_USER_
- on first run, copy the common PKCS modules to that writeable area
- document that custom modules (and their dependencies?) should be manually copied to that directory
- create a new interface (not auto-connected, that's okay) for access to /var/run/
I'm not familiar with how smart card readers work though, so feedback and suggestions are welcome.