Accepting request 147442 from security:chipcard
- Fix path to nologin in useradd (bnc#796242). (forwarded request 147441 from sbrabec) OBS-URL: https://build.opensuse.org/request/show/147442 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/pcsc-lite?expand=0&rev=50
This commit is contained in:
commit
bc4ff26979
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 7 19:44:56 CET 2013 - sbrabec@suse.cz
|
||||
|
||||
- Fix path to nologin in useradd (bnc#796242).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 30 08:34:00 UTC 2012 - wr@rosenauer.org
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package pcsc-lite
|
||||
#
|
||||
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -159,7 +159,12 @@ rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%pre
|
||||
getent group %{GROUP} >/dev/null || groupadd -r %{GROUP}
|
||||
getent passwd %{USER} >/dev/null || useradd -r -g %{GROUP} -s /bin/nologin -c "Smart Card Reader" -d /var/run/pcscd %{USER}
|
||||
if getent passwd %{USER} >/dev/null ; then
|
||||
# There was a bad login shell up to openSUSE 12.2 (bnc#796242), never in SLE. Fix it.
|
||||
usermod -s /usr/sbin/nologin %{USER}
|
||||
else
|
||||
useradd -r -g %{GROUP} -s /usr/sbin/nologin -c "Smart Card Reader" -d /var/run/pcscd %{USER}
|
||||
fi
|
||||
%if %suse_version > 1140
|
||||
%service_add_pre pcscd.service pcscd.socket
|
||||
%endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user