forked from pool/glibc
Accepting request 200165 from home:Andreas_Schwab:Factory
- nscd-server-user.patch: run nscd as user nscd (fate#314673) OBS-URL: https://build.opensuse.org/request/show/200165 OBS-URL: https://build.opensuse.org/package/show/Base:System/glibc?expand=0&rev=311
This commit is contained in:
@@ -209,6 +209,8 @@ Patch14: glibc-bindresvport-blacklist.diff
|
||||
Patch15: glibc-2.3.90-langpackdir.diff
|
||||
# PATCH-FEATURE-SLE increase cpusetsize to 4096, needs to be kept for compatibility kukuk@suse.de (XXX: Review)
|
||||
Patch18: glibc-cpusetsize.diff
|
||||
# PATCH-FEATURE-SLE Use nscd user for nscd
|
||||
Patch19: nscd-server-user.patch
|
||||
|
||||
### Locale related patches
|
||||
# PATCH-FIX-OPENSUSE Add additional locales
|
||||
@@ -337,6 +339,7 @@ Group: System/Daemons
|
||||
Provides: glibc:/usr/sbin/nscd
|
||||
Requires: glibc = %{version}
|
||||
Obsoletes: unscd <= 0.48
|
||||
Requires(pre): pwdutils
|
||||
%{?systemd_requires}
|
||||
|
||||
%description -n nscd
|
||||
@@ -453,6 +456,7 @@ rm nscd/s-stamp
|
||||
%patch14 -p1
|
||||
%patch15 -p1
|
||||
%patch18 -p1
|
||||
%patch19 -p1
|
||||
|
||||
%patch100 -p1
|
||||
%patch101 -p1
|
||||
@@ -993,6 +997,8 @@ done
|
||||
%install_info_delete --info-dir=%{_infodir} %{_infodir}/libc.info.gz
|
||||
|
||||
%pre -n nscd
|
||||
getent group nscd >/dev/null || %{_sbindir}/groupadd -r nscd
|
||||
getent passwd nscd >/dev/null || %{_sbindir}/useradd -r -g nscd -c "User for nscd" -s /sbin/nologin -d /var/run/nscd nscd
|
||||
%service_add_pre nscd.service
|
||||
|
||||
%preun -n nscd
|
||||
|
Reference in New Issue
Block a user