From b9e2e2b63f264b889a453b1199d7ae8f6333ab5c Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Wed, 13 May 2026 13:43:25 +0100 Subject: feat(pteid): bridge PKCS#11 into LibreWolf flatpak MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cartão de cidadão web authentication needs the libpteidpkcs11.so module loaded into LibreWolf's NSS database. With both apps now sandboxed in separate flatpaks, neither can see the other by default. Add a chezmoi onchange script that, when both flatpaks are installed: - Resolves the pt.gov.autenticacao install dir + .so path on the host - Grants LibreWolf flatpak read-only filesystem access to that dir, --socket=pcsc, and an LD_LIBRARY_PATH so the bundled deps (libxerces, libcjose, etc.) resolve at dlopen time - Registers the module in each LibreWolf NSS profile via modutil, with the path rewritten to /run/host/... as seen from inside the sandbox - Skips silently when LibreWolf is running (modutil would corrupt the DB) Hash gate includes the pt.gov.autenticacao line from meta/flatpak.txt so the override + registration auto-refresh on bundle bumps. Idempotent. Also explicit pcsc-lite + ccid in meta/extra.txt — they were transitive deps of the removed autenticacao-gov-pt-bin AUR package; pcscd.socket in systemd-units/system/base.txt would otherwise fail to activate. --- meta/extra.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'meta') diff --git a/meta/extra.txt b/meta/extra.txt index 3936385..3e8def9 100644 --- a/meta/extra.txt +++ b/meta/extra.txt @@ -6,6 +6,11 @@ udisks2 # Flatpak runtime (apps tracked in meta/flatpak.txt) flatpak +# Smartcard stack (cartão de cidadão reader + PKCS#11 bridge into flatpak browsers). +# pcscd.socket is enabled by systemd-units/system/base.txt. +pcsc-lite +ccid + # OCR (used by ~/.local/bin/ocr) tesseract tesseract-data-eng -- cgit v1.3.1