![](https://seccdn.libravatar.org/avatar/e2145bc5cf53dda95c308a3c75e8fef3.jpg?s=120&d=mm&r=g)
Hello community, here is the log from the commit of package pcsc-lite for openSUSE:Factory checked in at Wed Jul 29 16:53:36 CEST 2009. -------- --- pcsc-lite/pcsc-lite.changes 2009-05-27 17:18:33.000000000 +0200 +++ /mounts/work_src_done/STABLE/pcsc-lite/pcsc-lite.changes 2009-06-04 14:28:38.000000000 +0200 @@ -1,0 +2,5 @@ +Thu Jun 4 14:28:02 CEST 2009 - sbrabec@suse.cz + +- Fixed permissions of /var/run/pcscd (bnc#466211). + +------------------------------------------------------------------- calling whatdependson for head-i586 New: ---- pcsc-lite-permissions.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ pcsc-lite.spec ++++++ --- /var/tmp/diff_new_pack.t8eX7N/_old 2009-07-29 16:24:32.000000000 +0200 +++ /var/tmp/diff_new_pack.t8eX7N/_new 2009-07-29 16:24:32.000000000 +0200 @@ -23,10 +23,10 @@ %define ifddir %{_libdir}/readers BuildRequires: hal-devel pkg-config readline-devel Version: 1.5.3 -Release: 1 +Release: 2 PreReq: %{insserv_prereq} %{fillup_prereq} Group: Productivity/Security -License: BSD 3-Clause +License: BSD 3-clause (or similar) Url: http://pcsclite.alioth.debian.org/ Summary: PCS Smart Cards Library Source: %{name}-%{version}.tar.bz2 @@ -39,6 +39,8 @@ Patch2: pcsc-lite-overflow.patch # PATCH-FIX-UPSTREAM pcsc-lite-strict-aliasing.patch sbrabec@suse.cz -- Strict aliasing fix. Patch3: pcsc-lite-strict-aliasing.patch +# PATCH-FIX-UPSTREAM pcsc-lite-strict-aliasing.patch bnc466211 sbrabec@suse.cz -- Fix permissions of /var/run/pcscd. +Patch4: pcsc-lite-permissions.patch Requires: libpcsclite1 >= %{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -70,7 +72,7 @@ Antti Tapaninen <aet@cc.hut.fi> %package -n libpcsclite1 -License: BSD 3-Clause +License: BSD 3-clause (or similar) Group: System/Libraries Summary: PCS Smart Cards Library @@ -102,7 +104,7 @@ Antti Tapaninen <aet@cc.hut.fi> %package devel -License: BSD 3-Clause +License: BSD 3-clause (or similar) Group: Development/Libraries/C and C++ Summary: Development package for the MUSCLE project SmartCards library Requires: %{name} = %{version} pcsc-lite glibc-devel @@ -129,6 +131,7 @@ %patch1 %patch2 -p2 %patch3 +%patch4 -p2 %build %if %suse_version > 1010 ++++++ pcsc-lite-permissions.patch ++++++ Author: rousseau Date: Tue May 19 14:43:56 2009 New Revision: 4213 URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=4213 Log: main(): force access rights on /var/run/pcscd to be sure it can be used by a libpcsclite client without privileges Thanks to Sébastien Lorquet for the bug report Modified: trunk/PCSC/src/pcscdaemon.c Modified: trunk/PCSC/src/pcscdaemon.c URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/pcscdaemon.c?rev=4213&op=diff ============================================================================== --- trunk/PCSC/src/pcscdaemon.c (original) +++ trunk/PCSC/src/pcscdaemon.c Tue May 19 14:43:56 2009 @@ -396,14 +396,20 @@ rv = SYS_Stat(PCSCLITE_IPC_DIR, &fStatBuf); if (rv < 0) { - rv = SYS_Mkdir(PCSCLITE_IPC_DIR, - S_IROTH | S_IXOTH | S_IRGRP | S_IXGRP | S_IRWXU); + int mode = S_IROTH | S_IXOTH | S_IRGRP | S_IXGRP | S_IRWXU; + + rv = SYS_Mkdir(PCSCLITE_IPC_DIR, mode); if (rv != 0) { Log2(PCSC_LOG_CRITICAL, "cannot create " PCSCLITE_IPC_DIR ": %s", strerror(errno)); return EXIT_FAILURE; } + + /* set mode so that the directory is world readable and + * executable even is umask is restrictive + * The directory containes files used by libpcsclite */ + (void)SYS_Chmod(PCSCLITE_IPC_DIR, mode); } /* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org