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
This commit is contained in:
Kalev Lember 2011-08-20 14:31:30 +03:00
parent 305f583cd4
commit 98d53e9579
1 changed files with 6 additions and 2 deletions

View File

@ -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 <kalevlember@gmail.com> - 1.7.4-3
- Use /var/run/pcscd for ipc directory (#722449)
* Fri Jul 15 2011 Kalev Lember <kalevlember@gmail.com> - 1.7.4-2
- Converted initscript to systemd service file (#617330)