rpms/xinetd/F-12 xinetd.init,1.14,1.15 xinetd.spec,1.65,1.66
Jan Zeleny
jzeleny at fedoraproject.org
Tue Oct 20 12:28:21 UTC 2009
Author: jzeleny
Update of /cvs/extras/rpms/xinetd/F-12
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv29222
Modified Files:
xinetd.init xinetd.spec
Log Message:
last update of init script modified to work with SELinux correctly
Index: xinetd.init
===================================================================
RCS file: /cvs/extras/rpms/xinetd/F-12/xinetd.init,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -p -r1.14 -r1.15
--- xinetd.init 12 Oct 2009 10:55:48 -0000 1.14
+++ xinetd.init 20 Oct 2009 12:28:21 -0000 1.15
@@ -52,10 +52,9 @@ prog="xinetd"
start(){
[ -f /usr/sbin/xinetd ] || exit 5
[ -f /etc/xinetd.conf ] || exit 6
- touch /var/run/xinetd.pid > /dev/null 2>&1
- [ $? -eq 0 ] || exit 4
- touch /var/lock/subsys/xinetd > /dev/null 2>&1
- [ $? -eq 0 ] || exit 4
+ # this is suitable way considering SELinux is guarding write
+ # access to PID file
+ [ $EUID -eq 0 ] || exit 4
echo -n $"Starting $prog: "
@@ -83,16 +82,9 @@ start(){
stop(){
[ -f /usr/sbin/xinetd ] || exit 5
[ -f /etc/xinetd.conf ] || exit 6
- if [ -f /var/lock/subsys/xinetd ]; then
- if [ ! -w /var/lock/subsys/xinetd ]; then
- exit 4
- fi
- fi
- if [ -f /var/run/xinetd.pid ]; then
- if [ ! -w /var/run/xinetd.pid ]; then
- exit 4
- fi
- fi
+ # this is suitable way considering SELinux is guarding write
+ # access to PID file
+ [ $EUID -eq 0 ] || exit 4
echo -n $"Stopping $prog: "
killproc -p /var/run/xinetd.pid $prog
Index: xinetd.spec
===================================================================
RCS file: /cvs/extras/rpms/xinetd/F-12/xinetd.spec,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -p -r1.65 -r1.66
--- xinetd.spec 12 Oct 2009 10:55:48 -0000 1.65
+++ xinetd.spec 20 Oct 2009 12:28:21 -0000 1.66
@@ -1,7 +1,7 @@
Summary: A secure replacement for inetd
Name: xinetd
Version: 2.3.14
-Release: 26%{?dist}
+Release: 27%{?dist}
License: xinetd
Group: System Environment/Daemons
Epoch: 2
@@ -119,6 +119,9 @@ fi
%{_mandir}/*/*
%changelog
+* Tue Oct 20 2009 Jan Zeleny <jzeleny at redhat.com> - 2:2.3.14-27
+- last update of init script modified to work with SELinux correctly
+
* Mon Oct 12 2009 Jan Zeleny <jzeleny at redhat.com> - 2:2.3.14-26
- correction of init script (LSB compliance - #528154)
More information about the fedora-extras-commits
mailing list