forked from pool/glibc
Accepting request 20423 from Base:System
Copy from Base:System/glibc based on submit request 20423 from user pbaudis OBS-URL: https://build.opensuse.org/request/show/20423 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/glibc?expand=0&rev=10
This commit is contained in:
parent
1c7706889b
commit
fe9524db06
@ -51,7 +51,7 @@ diff -ruN crypt-/crypt_blowfish.c crypt/crypt_blowfish.c
|
|||||||
+#ifdef __i386__
|
+#ifdef __i386__
|
||||||
+#define BF_ASM 0 /* original OW patch has 1 */
|
+#define BF_ASM 0 /* original OW patch has 1 */
|
||||||
+#define BF_SCALE 1
|
+#define BF_SCALE 1
|
||||||
+#elif defined(__alpha__) || defined(__hppa__)
|
+#elif defined(__alpha__) || defined(__hppa__) || defined(__x86_64__)
|
||||||
+#define BF_ASM 0
|
+#define BF_ASM 0
|
||||||
+#define BF_SCALE 1
|
+#define BF_SCALE 1
|
||||||
+#else
|
+#else
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Sep 8 13:15:04 CEST 2009 - pbaudis@suse.cz
|
||||||
|
|
||||||
|
- Provide the /etc/apparmor.d/usr.sbin.nscd file [bnc#535467]
|
||||||
|
- Blowfish: Enable BF_SCALE even on x86_64
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Sep 5 23:19:51 CEST 2009 - pbaudis@suse.cz
|
Sat Sep 5 23:19:51 CEST 2009 - pbaudis@suse.cz
|
||||||
|
|
||||||
|
@ -69,7 +69,7 @@ Obsoletes: glibc-32bit
|
|||||||
Provides: rtld(GNU_HASH)
|
Provides: rtld(GNU_HASH)
|
||||||
AutoReqProv: on
|
AutoReqProv: on
|
||||||
Version: 2.10.1
|
Version: 2.10.1
|
||||||
Release: 7
|
Release: 8
|
||||||
Url: http://www.gnu.org/software/libc/libc.html
|
Url: http://www.gnu.org/software/libc/libc.html
|
||||||
PreReq: filesystem
|
PreReq: filesystem
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
@ -79,6 +79,7 @@ Source: glibc-%{version}-aa152ec6ad.tar.bz2
|
|||||||
Source2: glibc-ports-%{version}-2b2b217196.tar.bz2
|
Source2: glibc-ports-%{version}-2b2b217196.tar.bz2
|
||||||
Source3: noversion.tar.bz2
|
Source3: noversion.tar.bz2
|
||||||
Source4: manpages.tar.bz2
|
Source4: manpages.tar.bz2
|
||||||
|
Source5: usr.sbin.nscd
|
||||||
Source8: nsswitch.conf
|
Source8: nsswitch.conf
|
||||||
Source9: nscd.init
|
Source9: nscd.init
|
||||||
Source10: bindresvport.blacklist
|
Source10: bindresvport.blacklist
|
||||||
@ -702,8 +703,10 @@ cp -p manual/libc/*.html $RPM_BUILD_ROOT/usr/share/doc/glibc
|
|||||||
#
|
#
|
||||||
# Install nscd tools
|
# Install nscd tools
|
||||||
#
|
#
|
||||||
mkdir -p $RPM_BUILD_ROOT/etc/init.d
|
|
||||||
cp nscd/nscd.conf $RPM_BUILD_ROOT/etc
|
cp nscd/nscd.conf $RPM_BUILD_ROOT/etc
|
||||||
|
mkdir -p $RPM_BUILD_ROOT/etc/apparmor.d
|
||||||
|
cp $RPM_SOURCE_DIR/usr.sbin.nscd $RPM_BUILD_ROOT/etc/apparmor.d
|
||||||
|
mkdir -p $RPM_BUILD_ROOT/etc/init.d
|
||||||
install -m 755 $RPM_SOURCE_DIR/nscd.init $RPM_BUILD_ROOT/etc/init.d/nscd
|
install -m 755 $RPM_SOURCE_DIR/nscd.init $RPM_BUILD_ROOT/etc/init.d/nscd
|
||||||
ln -sf /etc/init.d/nscd $RPM_BUILD_ROOT/usr/sbin/rcnscd
|
ln -sf /etc/init.d/nscd $RPM_BUILD_ROOT/usr/sbin/rcnscd
|
||||||
mkdir -p $RPM_BUILD_ROOT/var/run/nscd
|
mkdir -p $RPM_BUILD_ROOT/var/run/nscd
|
||||||
@ -1033,6 +1036,7 @@ exit 0
|
|||||||
%files -n nscd
|
%files -n nscd
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%config(noreplace) /etc/nscd.conf
|
%config(noreplace) /etc/nscd.conf
|
||||||
|
%config /etc/apparmor.d/usr.sbin.nscd
|
||||||
%config /etc/init.d/nscd
|
%config /etc/init.d/nscd
|
||||||
/usr/sbin/nscd
|
/usr/sbin/nscd
|
||||||
/usr/sbin/rcnscd
|
/usr/sbin/rcnscd
|
||||||
|
43
usr.sbin.nscd
Normal file
43
usr.sbin.nscd
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
# Last Modified: Wed Aug 15 10:55:46 2007
|
||||||
|
# $Id: usr.sbin.nscd 1313 2008-11-05 12:03:29Z jrjohansen $
|
||||||
|
# ------------------------------------------------------------------
|
||||||
|
#
|
||||||
|
# Copyright (C) 2002-2005 Novell/SUSE
|
||||||
|
#
|
||||||
|
# This program is free software; you can redistribute it and/or
|
||||||
|
# modify it under the terms of version 2 of the GNU General Public
|
||||||
|
# License published by the Free Software Foundation.
|
||||||
|
#
|
||||||
|
# ------------------------------------------------------------------
|
||||||
|
|
||||||
|
#include <tunables/global>
|
||||||
|
/usr/sbin/nscd {
|
||||||
|
#include <abstractions/base>
|
||||||
|
#include <abstractions/consoles>
|
||||||
|
#include <abstractions/nameservice>
|
||||||
|
#include <abstractions/ssl_certs>
|
||||||
|
|
||||||
|
capability net_bind_service,
|
||||||
|
|
||||||
|
network inet dgram,
|
||||||
|
network inet stream,
|
||||||
|
|
||||||
|
/etc/netgroup r,
|
||||||
|
/etc/nscd.conf r,
|
||||||
|
/tmp/.winbindd/pipe rw,
|
||||||
|
/usr/sbin/nscd rmix,
|
||||||
|
/var/lib/samba/winbindd_privileged/pipe rw,
|
||||||
|
/var/run/.nscd_socket wl,
|
||||||
|
/var/run/avahi-daemon/socket w,
|
||||||
|
/var/run/nscd/ r,
|
||||||
|
/var/run/nscd/db* wl,
|
||||||
|
/var/run/nscd/socket wl,
|
||||||
|
/var/run/nscd/{passwd,group,services,hosts} rw,
|
||||||
|
/var/run/{nscd/,}nscd.pid rwl,
|
||||||
|
/var/log/nscd.log rw,
|
||||||
|
@{PROC}/[0-9]*/fd/ r,
|
||||||
|
@{PROC}/[0-9]*/fd/* r,
|
||||||
|
@{PROC}/[0-9]*/maps r,
|
||||||
|
@{PROC}/[0-9]*/mounts r,
|
||||||
|
@{PROC}/filesystems r,
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user