This commit is contained in:
parent
acea850f24
commit
1dcccc7a2a
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue May 22 09:37:59 CEST 2007 - mt@suse.de
|
||||||
|
|
||||||
|
- Bug 275592: Added ldap and ndsd to the Should-Start/Stop LSB
|
||||||
|
init info tags of the dhcp-server init script.
|
||||||
|
- Bug #241113: Added copying of /etc/openldap/ldap.conf and
|
||||||
|
more base libraries into the chroot jail.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon May 14 15:31:04 CEST 2007 - mt@suse.de
|
Mon May 14 15:31:04 CEST 2007 - mt@suse.de
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ License: BSD License and BSD-like
|
|||||||
Group: Productivity/Networking/Boot/Servers
|
Group: Productivity/Networking/Boot/Servers
|
||||||
Autoreqprov: on
|
Autoreqprov: on
|
||||||
Version: 3.0.5
|
Version: 3.0.5
|
||||||
Release: 34
|
Release: 37
|
||||||
Summary: Common Files Used by ISC DHCP Software
|
Summary: Common Files Used by ISC DHCP Software
|
||||||
URL: http://www.isc.org/isc/dhcp.html
|
URL: http://www.isc.org/isc/dhcp.html
|
||||||
Source0: http://ftp.isc.org/isc/dhcp/dhcp-%{version}.tar.gz
|
Source0: http://ftp.isc.org/isc/dhcp/dhcp-%{version}.tar.gz
|
||||||
@ -519,6 +519,11 @@ if ! test -f /.buildenv; then rm -rf $RPM_BUILD_ROOT; fi
|
|||||||
%doc %{_mandir}/man3/dhcpctl.3.gz
|
%doc %{_mandir}/man3/dhcpctl.3.gz
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue May 22 2007 - mt@suse.de
|
||||||
|
- Bug 275592: Added ldap and ndsd to the Should-Start/Stop LSB
|
||||||
|
init info tags of the dhcp-server init script.
|
||||||
|
- Bug #241113: Added copying of /etc/openldap/ldap.conf and
|
||||||
|
more base libraries into the chroot jail.
|
||||||
* Mon May 14 2007 - mt@suse.de
|
* Mon May 14 2007 - mt@suse.de
|
||||||
- Bug #265337: Fix to generate proper "host ... {" block begin
|
- Bug #265337: Fix to generate proper "host ... {" block begin
|
||||||
brace even if no harware address is specified for the host.
|
brace even if no harware address is specified for the host.
|
||||||
|
14
rc.dhcpd
14
rc.dhcpd
@ -13,9 +13,9 @@
|
|||||||
### BEGIN INIT INFO
|
### BEGIN INIT INFO
|
||||||
# Provides: dhcpd
|
# Provides: dhcpd
|
||||||
# Required-Start: $local_fs $remote_fs $network
|
# Required-Start: $local_fs $remote_fs $network
|
||||||
# Should-Start: $named $syslog $time
|
# Should-Start: $named $syslog $time ldap ndsd
|
||||||
# Required-Stop: $local_fs $remote_fs $network
|
# Required-Stop: $local_fs $remote_fs $network
|
||||||
# Should-Stop: $named $syslog
|
# Should-Stop: $named $syslog ldap ndsd
|
||||||
# Default-Start: 3 5
|
# Default-Start: 3 5
|
||||||
# Default-Stop: 0 1 2 6
|
# Default-Stop: 0 1 2 6
|
||||||
# Short-Description: DHCP Server
|
# Short-Description: DHCP Server
|
||||||
@ -57,6 +57,7 @@ DAEMON_CONF=/etc/dhcpd.conf
|
|||||||
DAEMON_PIDFILE=/var/run/dhcpd.pid
|
DAEMON_PIDFILE=/var/run/dhcpd.pid
|
||||||
STARTPROC_LOGFILE=/var/log/rc.dhcpd.log
|
STARTPROC_LOGFILE=/var/log/rc.dhcpd.log
|
||||||
SUPPORTS_HUP="no"
|
SUPPORTS_HUP="no"
|
||||||
|
LDAP_CONF=/etc/openldap/ldap.conf
|
||||||
|
|
||||||
# Shell functions sourced from /etc/rc.status:
|
# Shell functions sourced from /etc/rc.status:
|
||||||
# rc_check check and set local and overall rc status
|
# rc_check check and set local and overall rc status
|
||||||
@ -159,7 +160,7 @@ case "$1" in
|
|||||||
if test "$DHCPD_RUN_CHROOTED" = "yes" ; then
|
if test "$DHCPD_RUN_CHROOTED" = "yes" ; then
|
||||||
## copy the conf file to the chroot jail (dhcpd has to be restarted anyway,
|
## copy the conf file to the chroot jail (dhcpd has to be restarted anyway,
|
||||||
## when it has changed) and change path to leases file
|
## when it has changed) and change path to leases file
|
||||||
for i in $DAEMON_CONF $DHCPD_CONF_INCLUDE_FILES; do
|
for i in $DAEMON_CONF $DHCPD_CONF_INCLUDE_FILES $LDAP_CONF; do
|
||||||
if test -d "${i}" ; then
|
if test -d "${i}" ; then
|
||||||
test -d "$CHROOT_PREFIX/${i}" || \
|
test -d "$CHROOT_PREFIX/${i}" || \
|
||||||
mkdir -p "$CHROOT_PREFIX/${i}"
|
mkdir -p "$CHROOT_PREFIX/${i}"
|
||||||
@ -169,13 +170,14 @@ case "$1" in
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
rm -f $CHROOT_PREFIX/dev/urandom
|
rm -f $CHROOT_PREFIX/dev/urandom
|
||||||
for i in $DAEMON_CONF $DHCPD_CONF_INCLUDE_FILES /etc/{resolv.conf,host.conf,hosts,localtime} /dev/urandom; do
|
for i in $DAEMON_CONF $DHCPD_CONF_INCLUDE_FILES $LDAP_CONF /etc/{resolv.conf,host.conf,hosts,localtime} /dev/urandom; do
|
||||||
if ! test -e "$i"; then continue; fi # neither of them is absolutely necessary
|
if ! test -e "$i"; then continue; fi # neither of them is absolutely necessary
|
||||||
cp -aL "$i" "$CHROOT_PREFIX/${i%/*}/" &>/dev/null \
|
cp -aL "$i" "${CHROOT_PREFIX}/${i%/*}/" &>/dev/null \
|
||||||
|| { echo "...$0:$LINENO: could not copy $i to chroot jail"; rc_failed; rc_status -v1; exit 6; }
|
|| { echo "...$0:$LINENO: could not copy $i to chroot jail"; rc_failed; rc_status -v1; exit 6; }
|
||||||
done
|
done
|
||||||
libdir=/$(basename $(echo /var/lib/dhcp/lib*))
|
libdir=/$(basename $(echo /var/lib/dhcp/lib*))
|
||||||
for i in /$libdir/{libresolv.so.2,libnss_dns{,6}.so.2}; do
|
for i in /$libdir/{libresolv.so.2,libnss_dns{,6}.so.2} \
|
||||||
|
/$libdir/{libpthread.so.0,libdl.so.2} ; do
|
||||||
if [ -s "$i" ]; then
|
if [ -s "$i" ]; then
|
||||||
cp -pL "$i" "/var/lib/dhcp/$libdir/" \
|
cp -pL "$i" "/var/lib/dhcp/$libdir/" \
|
||||||
|| { echo "...$0:$LINENO: could not copy $i to chroot jail"; rc_failed; rc_status -v1; exit 6; }
|
|| { echo "...$0:$LINENO: could not copy $i to chroot jail"; rc_failed; rc_status -v1; exit 6; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user