From 98d53e95795062e0efc184e18cf6ea4142156b8f Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Sat, 20 Aug 2011 14:31:30 +0300 Subject: [PATCH] Use /var/run/pcscd for ipc directory (#722449) This changes the ipc directory used for libpcsclite / pcscd communication to /var/run/pcscd, following the upstream default. The main motivation behind the change is to work around a bug in systemd where socket files created by systemd get mislabelled. With moving the pcscd.comm socket file to a subdirectory, the selinux policy can is applied to the whole subdirectory, fixing the issue with labelling individual socket files. https://bugzilla.redhat.com/show_bug.cgi?id=722449 --- pcsc-lite.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pcsc-lite.spec b/pcsc-lite.spec index ff5b1cc..bdd40f0 100644 --- a/pcsc-lite.spec +++ b/pcsc-lite.spec @@ -2,7 +2,7 @@ Name: pcsc-lite Version: 1.7.4 -Release: 2%{?dist} +Release: 3%{?dist} Summary: PC/SC Lite smart card framework and applications Group: System Environment/Daemons @@ -82,7 +82,6 @@ done %configure \ --disable-static \ --disable-autostart \ - --enable-ipcdir=%{_localstatedir}/run \ --enable-usbdropdir=%{_libdir}/pcsc/drivers make %{?_smp_mflags} doxygen doc/doxygen.conf ; rm -f doc/api/*.{map,md5} @@ -94,6 +93,7 @@ make install DESTDIR=$RPM_BUILD_ROOT # Create empty directories mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/reader.conf.d mkdir -p $RPM_BUILD_ROOT%{_libdir}/pcsc/drivers +mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/pcscd rm $RPM_BUILD_ROOT%{_libdir}/*.la @@ -154,6 +154,7 @@ fi %dir %{_libdir}/pcsc/drivers/ %{_mandir}/man5/reader.conf.5* %{_mandir}/man8/pcscd.8* +%ghost %dir %{_localstatedir}/run/pcscd/ %files libs %doc COPYING @@ -169,6 +170,9 @@ fi %changelog +* Sat Aug 20 2011 Kalev Lember - 1.7.4-3 +- Use /var/run/pcscd for ipc directory (#722449) + * Fri Jul 15 2011 Kalev Lember - 1.7.4-2 - Converted initscript to systemd service file (#617330)