| Summary: | Broken pcsc socket when using flatpak apps -> no access to USB smartcard reader from within a flatpak sandbox. FIX PROVIDED | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Martin Spiegel <mnspiegel> |
| Component: | RPM Packages | Assignee: | QA Team <qa-bugs> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | marja11, nicolas.salguero, sysadmin-bugs |
| Version: | 9 | Keywords: | advisory, validated_update |
| Target Milestone: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| URL: | https://ludovicrousseau.blogspot.com/2022/02/fedora-flatpak-and-pcsc-lite.html https://ludovicrousseau.blogspot.com/2022/02/accessing-smart-cards-from-inside.html | ||
| Whiteboard: | MGA9-64-OK | ||
| Source RPM: | pcsc-lite-1.9.9-1.mga9.src.rpm | CVE: | |
| Status comment: | |||
| Attachments: | Modified spec file for pcsc-lite | ||
|
Description
Martin Spiegel
2024-02-10 18:57:05 CET
Martin Spiegel
2024-02-11 02:27:56 CET
Source RPM:
flatpak-1.14.4-1.mga9.src.rpm, pcsc-lite-1.9.9-1.mga9.src.rpm =>
pcsc-lite-1.9.9-1.mga9.src.rpm Created attachment 14366 [details]
Modified spec file for pcsc-lite
I think I have found a solution: I compared once again the Mageia pcsc-lite spec file with the Fedora version. The two main differences are: Mageia still uses the pcsc-lite-1.9.1-maxreaders.patch (see my previous comment) and the Mageia spec file contains an additional configure option in the build section: --enable-ipcdir=/run. I have rebuilt the Mageia psc-lite packages without the patch *and* without the additonal configure option and reinstalled them. Now, flatpak-apps can access my smartcard reader without problems!. Additionally, the modified packages do not break "direct" access of the smartcard reader (e.g. with pcsc_scan provided by Mageia). Thank you Martin for not just the original report, but your detailed and extensive research into it - comparing with other distros, rebuilding things, and apparently sorting the problem. Please confirm that the modified spec file comment 1 incorporates the correction described in comment 2: I imagine so; packagers will check. Become a packager? You are clearly adept: https://wiki.mageia.org/en/Becoming_a_Mageia_Packager Assigning globally as the previous maintainer has retired. Assignee:
bugsquad =>
pkg-bugs Yes, the uploaded spec file contains the necessary changes. These are the following ones (line numbers refer to the original spec file): l015: patch deleted l104: autosetup -p1 chaged to setup -q l109: option --enable-ipcdir=/run deleted Suggested advisory: ======================== The updated packages fix access to USB smartcard reader from within a flatpak sandbox. References: https://ludovicrousseau.blogspot.com/2022/02/fedora-flatpak-and-pcsc-lite.html https://ludovicrousseau.blogspot.com/2022/02/accessing-smart-cards-from-inside.html ======================== Updated packages in core/updates_testing: ======================== lib(64)pcsclite1-1.9.9-1.1.mga9 lib(64)pcsclite-devel-1.9.9-1.1.mga9 lib(64)pcscspy0-1.9.9-1.1.mga9 pcsc-lite-1.9.9-1.1.mga9 pcsc-lite-doc-1.9.9-1.1.mga9 pcsc-spy-1.9.9-1.1.mga9 from SRPM: pcsc-lite-1.9.9-1.1.mga9.src.rpm Assignee:
pkg-bugs =>
qa-bugs I have installed the upadated pcsc packages from core/updates_testing. They work for me :-) I have installed the updated pcsc packages from core/updates_testing. They work for me :-)
Marja Van Waes
2024-02-14 16:41:57 CET
URL:
(none) =>
https://ludovicrousseau.blogspot.com/2022/02/fedora-flatpak-and-pcsc-lite.html https://ludovicrousseau.blogspot.com/2022/02/accessing-smart-cards-from-inside.html
Marja Van Waes
2024-02-14 16:44:12 CET
Keywords:
(none) =>
advisory
katnatek
2024-02-15 03:28:21 CET
Whiteboard:
(none) =>
MGA9-64-OK An update for this issue has been pushed to the Mageia Updates repository. https://advisories.mageia.org/MGAA-2024-0055.html Status:
ASSIGNED =>
RESOLVED |