[ypbind] Fixed ypbind.service when selinux is disabled

Jan Horak hhorak at fedoraproject.org
Tue Jun 7 08:42:14 UTC 2011


commit c6bbe81b0f415ebd84637c2af02d30080ef169e4
Author: Honza Horák <hhorak at redhat.com>
Date:   Tue Jun 7 10:41:19 2011 +0200

    Fixed ypbind.service when selinux is disabled

 ypbind.service |    3 ++-
 ypbind.spec    |    5 ++++-
 2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/ypbind.service b/ypbind.service
index 40cd3af..1cb8a00 100644
--- a/ypbind.service
+++ b/ypbind.service
@@ -5,7 +5,8 @@ After=syslog.target network.target rpcbind.service
 [Service]
 EnvironmentFile=-/etc/sysconfig/network
 EnvironmentFile=-/etc/sysconfig/ypbind
-ExecStartPre=/usr/lib/ypbind/ypbind-pre-setdomain ; /usr/sbin/setsebool allow_ypbind=1 
+ExecStartPre=-/usr/lib/ypbind/ypbind-pre-setdomain
+ExecStartPre=-/usr/sbin/setsebool allow_ypbind=1 
 ExecStart=/usr/sbin/ypbind -f $OTHER_YPBIND_OPTS
 ExecStopPost=/usr/sbin/setsebool allow_ypbind=0 ; /usr/lib/ypbind/ypbind-post-waitbind
 
diff --git a/ypbind.spec b/ypbind.spec
index af11896..802588d 100644
--- a/ypbind.spec
+++ b/ypbind.spec
@@ -1,7 +1,7 @@
 Summary: The NIS daemon which binds NIS clients to an NIS domain
 Name: ypbind
 Version: 1.33
-Release: 2%{?dist}
+Release: 3%{?dist}
 License: GPLv2
 Group: System Environment/Daemons
 Source0: ftp://ftp.us.kernel.org/pub/linux/utils/net/NIS/ypbind-mt-%{version}.tar.bz2
@@ -107,6 +107,9 @@ fi
 %doc README NEWS COPYING
 
 %changelog
+* Tue Jun 07 2011 Honza Horak <hhorak at redhat.com> - 3:1.33-3
+- Fixed ypbind.service when selinux is disabled
+
 * Wed May 10 2011 Honza Horak <hhorak at redhat.com> - 3:1.33-2
 - Added /etc/sysconfig/network to systemd service file
 


More information about the scm-commits mailing list