I tested this update in Lunar (both a fresh install from -proposed and
an upgrade to -proposed) and confirm that the socket is enabled:

Do you want to continue? [Y/n] Y
Get:1 http://192.168.10.7/ubuntu lunar-proposed/universe amd64 pcscd amd64 
1.9.9-1ubuntu0.23.04.1 [58.6 kB]
Get:2 http://192.168.10.7/ubuntu lunar-proposed/main amd64 libpcsclite1 amd64 
1.9.9-1ubuntu0.23.04.1 [20.5 kB]
Fetched 79.1 kB in 0s (679 kB/s)
(Reading database ... 241412 files and directories currently installed.)
Preparing to unpack .../pcscd_1.9.9-1ubuntu0.23.04.1_amd64.deb ...
Unpacking pcscd (1.9.9-1ubuntu0.23.04.1) over (1.9.9-1) ...
Preparing to unpack .../libpcsclite1_1.9.9-1ubuntu0.23.04.1_amd64.deb ...
Unpacking libpcsclite1:amd64 (1.9.9-1ubuntu0.23.04.1) over (1.9.9-1) ...
Setting up libpcsclite1:amd64 (1.9.9-1ubuntu0.23.04.1) ...
Setting up pcscd (1.9.9-1ubuntu0.23.04.1) ...
Created symlink /etc/systemd/system/sockets.target.wants/pcscd.socket \u2192 
/lib/systemd/system/pcscd.socket.
pcscd.service is a disabled or a static unit not running, not starting it.
Processing triggers for libc-bin (2.37-0ubuntu2) ...
Processing triggers for man-db (2.11.2-1) ...
bdmurray@clean-lunar-amd64:~$ systemctl status pcscd.socket
\u25cf pcscd.socket - PC/SC Smart Card Daemon Activation Socket
     Loaded: loaded (/lib/systemd/system/pcscd.socket; enabled; preset: enabled)
     Active: active (listening) since Thu 2023-07-27 12:31:53 PDT; 20s ago
      Until: Thu 2023-07-27 12:31:53 PDT; 20s ago
   Triggers: \u25cf pcscd.service
     Listen: /run/pcscd/pcscd.comm (Stream)
     CGroup: /system.slice/pcscd.socket

Jul 27 12:31:53 clean-lunar-amd64 systemd[1]: Listening on pcscd.socket
- PC/SC Smart Card Daemon Activation Socket.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to pcsc-lite in Ubuntu.
https://bugs.launchpad.net/bugs/1971984

Title:
  pcscd.socket is disabled after installation

Status in pcsc-lite package in Ubuntu:
  Fix Released
Status in pcsc-lite source package in Jammy:
  Fix Committed
Status in pcsc-lite source package in Kinetic:
  Won't Fix
Status in pcsc-lite source package in Lunar:
  Fix Committed
Status in pcsc-lite package in Debian:
  Fix Released

Bug description:
  [ Impact ]

  The pscc-lite package provides an open source implementation of PC/SC,
  the de-facto standard to interface Personal Computers with Smart
  Cards/Readers.

  This bug is in the upstream debian packaging, and results in the
  pcscd.socket being disabled after installation. This prevents
  automatic startup of the associated pcscd.service, thus preventing
  automatic handling of Smart Cards/Readers w/out manual intervention to
  enable the socket (which doesn't persist across reboots).

  This is especially painful for users that require Smart Authentication
  for login.

  [ Test Plan ]

  Steps to reproduce:

  1. If installed, remove and do a fresh install of the package pcscd
  (the sole version released for jammy is 1.9.5-3).

  2. Verify that the pcscd.socket is disabled:

  $ systemctl status pcscd.socket
  ○ pcscd.socket - PC/SC Smart Card Daemon Activation Socket
       Loaded: loaded (/lib/systemd/system/pcscd.socket; disabled; vendor 
preset: enabled)
       Active: inactive (dead)
     Triggers: ● pcscd.service
       Listen: /run/pcscd/pcscd.comm (Stream)

  3. [Optional] insert a Smart Card or Crypto Token (e.g. a Yubikey or
  Nitrokey) that's known to work on Ubuntu and verify that it fails to
  work.

  Repeating the same steps with a package built with the patch attached
  to comment #27 should ensure that the socket is enabled, and that
  interaction with a Smart Card or Crypto Token should work w/out manual
  intervention.

  [ Where problems could occur ]

  This is a back-ported change from upstream and is a result of a bug in
  dh_installsystemd (see comment #26). As such the risk is minimal.

  The only potential risk of failure I can come up with is a snap that
  stages the old version of the client library, as it would be looking
  in the wrong place for the socket.

  [ Other Info ]

  This bug was originally reported against Ubuntu Mate 22.04, however it
  applies to all derivatives of Ubuntu Desktop 22.04 LTS.

  Note - while there's some disagreement as to whether this bug occurs
  100% of the time across all 22.04 installations, it's pretty clear
  from the upstream Debian bug and subsequent packaging fix that we
  should land this.

  As the upstream fix landed in 1.9.9-2 (which is already released in mantic) 
only the following releases are impacted by this bug:
   - jammy
   - kinetic
   - lunar

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pcsc-lite/+bug/1971984/+subscriptions


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to