- Change init script to automatically turn on/off allow_ypbind boolean

This commit is contained in:
Daniel J Walsh 2006-08-31 14:13:13 +00:00
parent 26d84187d2
commit 9d8b48a338
2 changed files with 6 additions and 3 deletions

View File

@ -29,7 +29,7 @@ OTHER_YPBIND_OPTS=""
selinux_on() { selinux_on() {
[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
echo "Turning on allow_ypbind SELinux boolean" echo $"Turning on allow_ypbind SELinux boolean"
setsebool allow_ypbind=1 setsebool allow_ypbind=1
} }
@ -41,7 +41,7 @@ selinux_off() {
. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local . /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
fi fi
if [ $allow_ypbind == 0 ]; then if [ $allow_ypbind == 0 ]; then
echo "Turning off allow_ypbind SELinux boolean" echo $"Turning off allow_ypbind SELinux boolean"
setsebool allow_ypbind=$allow_ypbind setsebool allow_ypbind=$allow_ypbind
fi fi
} }

View File

@ -1,7 +1,7 @@
Summary: The NIS daemon which binds NIS clients to an NIS domain. Summary: The NIS daemon which binds NIS clients to an NIS domain.
Name: ypbind Name: ypbind
Version: 1.19 Version: 1.19
Release: 4 Release: 5
License: GPL License: GPL
Group: System Environment/Daemons Group: System Environment/Daemons
Source0: ftp://ftp.us.kernel.org/pub/linux/utils/net/NIS/ypbind-mt-%{PACKAGE_VERSION}.tar.bz2 Source0: ftp://ftp.us.kernel.org/pub/linux/utils/net/NIS/ypbind-mt-%{PACKAGE_VERSION}.tar.bz2
@ -85,6 +85,9 @@ exit 0
%doc README NEWS %doc README NEWS
%changelog %changelog
* Thu Aug 31 2006 Dan Walsh <dwalsh@redhat.com> - 3:1.19-5
- Change init script to automatically turn on/off allow_ypbind boolean
* Wed Aug 23 2006 Steve Dickson <steved@redhat.com> - 3:1.19-4 * Wed Aug 23 2006 Steve Dickson <steved@redhat.com> - 3:1.19-4
- Remove the -s from install process making the -debuginfo - Remove the -s from install process making the -debuginfo
package useful (bz 203851) package useful (bz 203851)