Bug#924914: pcscd: socket activation masks socket

2019-03-24 Thread Ludovic Rousseau

Le 24/03/2019 à 20:33, Mathias Behrle a écrit :

* Ludovic Rousseau: " Re: Bug#924914: pcscd: socket activation masks
   socket" (Sun, 24 Mar 2019 14:58:07 +0100):

Hello,


I fixed the problem upstream in
https://salsa.debian.org/rousseau/PCSC/commit/d627aee864c3e9ce40e375fcc0e34a7855b6f0f1

Please confirm the fix works for you.
It if is OK then I will make a new upstream release and then a new Debian
package.


Yes, that's exactliy the fix I am running and that works for me.


OK. Thanks for the confirmation.

--
 Dr. Ludovic Rousseau



Bug#924914: pcscd: socket activation masks socket

2019-03-24 Thread Mathias Behrle
* Ludovic Rousseau: " Re: Bug#924914: pcscd: socket activation masks
  socket" (Sun, 24 Mar 2019 14:58:07 +0100):

Hello,

> I fixed the problem upstream in
> https://salsa.debian.org/rousseau/PCSC/commit/d627aee864c3e9ce40e375fcc0e34a7855b6f0f1
> 
> Please confirm the fix works for you.
> It if is OK then I will make a new upstream release and then a new Debian
> package.

Yes, that's exactliy the fix I am running and that works for me.

Cheers




-- 

Mathias Behrle ✧ Debian Developer
PGP/GnuPG key availabable from any keyserver, ID: 0xD6D09BE48405BBF6
AC29 7E5C 46B9 D0B6 1C71  7681 D6D0 9BE4 8405 BBF6



Bug#924914: pcscd: socket activation masks socket

2019-03-24 Thread Ludovic Rousseau

Le 18/03/2019 à 20:47, Mathias Behrle a écrit :

* Ludovic Rousseau: " Re: Bug#924914: pcscd: socket activation masks
   socket" (Mon, 18 Mar 2019 18:42:21 +0100):

Hello Ludovic,


Hello,

Sorry for the delay. Your email was in the gmail spam folder :-(


Le 18/03/2019 à 11:40, Mathias Behrle a écrit :

Package: pcscd
Version: 1.8.24-1
Severity: important
Tags: patch

Dear Maintainer,


Hello,


pcscd.socket masks the socket of pcscd, which is then not available for
programs needing it (e.g. can easily reproduced by running pcsc_scan).


What are the steps to reproduce the problem?


I am running pcscd inside an LXC container (container is buster, host is
jessie). There is no problem when starting pcscd from command line: it creates
the socket. The problem appears when started by systemd. As already said it is
easy to reproduce: pcsc_scan doesn't work.
  

The additional line

SocketMode=0666

in pcscd.socket re-instates the usual socket as usually created by
pcscd.


the socket is now created by systemd, not pcscd.
Unless you have a special configuration.


The socket is only created when SocketMode=0666 is set, otherwise there is no
socket in /var/run/pcscd. May be it is a special behavior of systemd in LXC
containers.


I fixed the problem upstream in 
https://salsa.debian.org/rousseau/PCSC/commit/d627aee864c3e9ce40e375fcc0e34a7855b6f0f1

Please confirm the fix works for you.
It if is OK then I will make a new upstream release and then a new Debian 
package.

Thanks

--
 Dr. Ludovic Rousseau



Bug#924914: pcscd: socket activation masks socket

2019-03-18 Thread Mathias Behrle
* Ludovic Rousseau: " Re: Bug#924914: pcscd: socket activation masks
  socket" (Mon, 18 Mar 2019 18:42:21 +0100):

Hello Ludovic,

> Le 18/03/2019 à 11:40, Mathias Behrle a écrit :
> > Package: pcscd
> > Version: 1.8.24-1
> > Severity: important
> > Tags: patch
> > 
> > Dear Maintainer,  
> 
> Hello,
> 
> > pcscd.socket masks the socket of pcscd, which is then not available for
> > programs needing it (e.g. can easily reproduced by running pcsc_scan).  
> 
> What are the steps to reproduce the problem?

I am running pcscd inside an LXC container (container is buster, host is
jessie). There is no problem when starting pcscd from command line: it creates
the socket. The problem appears when started by systemd. As already said it is
easy to reproduce: pcsc_scan doesn't work.
 
> > The additional line
> > 
> > SocketMode=0666
> > 
> > in pcscd.socket re-instates the usual socket as usually created by
> > pcscd.  
> 
> the socket is now created by systemd, not pcscd.
> Unless you have a special configuration.

The socket is only created when SocketMode=0666 is set, otherwise there is no
socket in /var/run/pcscd. May be it is a special behavior of systemd in LXC
containers.
 


-- 

Mathias Behrle
PGP/GnuPG key availabable from any keyserver, ID: 0xD6D09BE48405BBF6
AC29 7E5C 46B9 D0B6 1C71  7681 D6D0 9BE4 8405 BBF6



Bug#924914: pcscd: socket activation masks socket

2019-03-18 Thread Ludovic Rousseau

Le 18/03/2019 à 11:40, Mathias Behrle a écrit :

Package: pcscd
Version: 1.8.24-1
Severity: important
Tags: patch

Dear Maintainer,


Hello,


pcscd.socket masks the socket of pcscd, which is then not available for
programs needing it (e.g. can easily reproduced by running pcsc_scan).


What are the steps to reproduce the problem?


The additional line

SocketMode=0666

in pcscd.socket re-instates the usual socket as usually created by
pcscd.


the socket is now created by systemd, not pcscd.
Unless you have a special configuration.

I don't understand what problem you have.
Please describe it.

Bye

--
 Dr. Ludovic Rousseau



Bug#924914: pcscd: socket activation masks socket

2019-03-18 Thread Mathias Behrle
Package: pcscd
Version: 1.8.24-1
Severity: important
Tags: patch

Dear Maintainer,

pcscd.socket masks the socket of pcscd, which is then not available for
programs needing it (e.g. can easily reproduced by running pcsc_scan).

The additional line

SocketMode=0666

in pcscd.socket re-instates the usual socket as usually created by
pcscd.

Cheers
Mathias

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (800, 'testing'), (700, 'unstable'), (600, 'experimental'), (500, 
'stable'), (500, 'oldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-2-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8), 
LANGUAGE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages pcscd depends on:
ii  libc6 2.28-8
ii  libccid [pcsc-ifd-handler]1.4.30-1
ii  libifd-cyberjack6 [pcsc-ifd-handler]  3.99.5final.sp09-1.1
ii  libpcsclite1  1.8.24-1
ii  libsystemd0   241-1
ii  libudev1  241-1
ii  lsb-base  10.2018112800

pcscd recommends no packages.

Versions of packages pcscd suggests:
ii  systemd  241-1

-- no debconf information