Your message dated Fri, 04 Sep 2009 05:47:19 +0000
with message-id <[email protected]>
and subject line Bug#528582: fixed in policycoreutils 2.0.72-2
has caused the Debian Bug report #528582,
regarding init.d status support
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
528582: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=528582
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: policycoreutils
Version: 2.0.55-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: initd-status-support

Here is a patch to support the "status" action in the init.d script.  Note 
that I wanted to make "status" usable even as non-root user, so I had to 
rejuggle a few things.

Also note that the dependency on lsb-base is already missing in the current 
version.
diff -u policycoreutils-2.0.55/restorecond/restorecond.init policycoreutils-2.0.55/restorecond/restorecond.init
--- policycoreutils-2.0.55/restorecond/restorecond.init
+++ policycoreutils-2.0.55/restorecond/restorecond.init
@@ -30,7 +30,9 @@
 [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 0
 
 # Check that we are root ... so non-root users stop here
-test $(id -u) = 0  || exit 1
+if [ $(id -u) != 0 ] && [ "$1" != status ]; then
+	exit 4
+fi
 
 
 # Get lsb functions
@@ -38,7 +40,7 @@
 # Load the VERBOSE setting and other rcS variables
 . /lib/init/vars.sh
 # Test to see if we are configured
-if [ ! -f  /etc/selinux/restorecond.conf  ]; then
+if [ ! -f  /etc/selinux/restorecond.conf  ] && [ "$1" != status ]; then
     log_failure_msg "There is no configuration file for restorecond."
     log_failure_msg "Please create /etc/selinux/restorecond.conf."
     exit 6
@@ -70,8 +72,12 @@
         $0 start || RETVAL=1
         log_action_end_msg $RETVAL
 	;;
+    status)
+	status_of_proc /usr/sbin/restorecond restorecond
+	exit $?
+	;;
     *)
-        log_success_msg "Usage: $0 {start|stop|restart|reload|condrestart}"
+        log_success_msg "Usage: $0 {start|stop|restart|reload|condrestart|status}"
         RETVAL=1
 esac
 
diff -u policycoreutils-2.0.55/debian/control policycoreutils-2.0.55/debian/control
--- policycoreutils-2.0.55/debian/control
+++ policycoreutils-2.0.55/debian/control
@@ -12,7 +12,7 @@
 
 Package: policycoreutils
 Architecture: any
-Depends: ${shlibs:Depends}, python (>= 2.5), python-semanage,
+Depends: ${shlibs:Depends}, lsb-base (>= 3.2-13), python (>= 2.5), python-semanage,
   python-selinux, python-sepolgen (>=1.0.11-4)
 Recommends: selinux-policy-default
 Description: SELinux core policy utilities

--- End Message ---
--- Begin Message ---
Source: policycoreutils
Source-Version: 2.0.72-2

We believe that the bug you reported is fixed in the latest version of
policycoreutils, which is due to be installed in the Debian FTP archive:

policycoreutils_2.0.72-2.diff.gz
  to pool/main/p/policycoreutils/policycoreutils_2.0.72-2.diff.gz
policycoreutils_2.0.72-2.dsc
  to pool/main/p/policycoreutils/policycoreutils_2.0.72-2.dsc
policycoreutils_2.0.72-2_amd64.deb
  to pool/main/p/policycoreutils/policycoreutils_2.0.72-2_amd64.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Manoj Srivastava <[email protected]> (supplier of updated policycoreutils 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Format: 1.8
Date: Fri, 04 Sep 2009 00:22:51 -0500
Source: policycoreutils
Binary: policycoreutils
Architecture: source amd64
Version: 2.0.72-2
Distribution: unstable
Urgency: low
Maintainer: Russell Coker <[email protected]>
Changed-By: Manoj Srivastava <[email protected]>
Description: 
 policycoreutils - SELinux core policy utilities
Closes: 528582
Changes: 
 policycoreutils (2.0.72-2) unstable; urgency=low
 .
   * [1e640be]: [topic--restorecond-init-script]: init.d status support
     Here is a patch to support the "status" action in the init.d script.
     Note that to make "status" usable even as non-root user some things
     needed to be rejuggled. Note that the dependency on lsb-base is
     already missing in the current version.
     Bug fix: "init.d status support", thanks to Peter Eisentraut
                                                           (Closes: #528582).
Checksums-Sha1: 
 0eb43d1e70963d766c98a24192252c83d0a97282 1360 policycoreutils_2.0.72-2.dsc
 ffbc7196786aca8e215b99b7457b6fa72e1925c9 43599 policycoreutils_2.0.72-2.diff.gz
 0790610628f6db7ff5da2703009b6e8ec70f61b4 444288 
policycoreutils_2.0.72-2_amd64.deb
Checksums-Sha256: 
 e93742a62b305be7e4971b5de4129d51b5bdc979155a2af7e80d998b236654f9 1360 
policycoreutils_2.0.72-2.dsc
 601f336918e6a9f8cccd7e2aaaea897f01dd89fb88ef13f8900f58d4d84b8522 43599 
policycoreutils_2.0.72-2.diff.gz
 20b9cab2d55f7cf1f3165105d6597d0f88195847291f31bb0e9a1d8e41ac740a 444288 
policycoreutils_2.0.72-2_amd64.deb
Files: 
 44a000b7ed39c5c3b1d841f997ea2245 1360 utils standard 
policycoreutils_2.0.72-2.dsc
 89fa68d04e0fe9ffcdbcf49c1a0d4dd6 43599 utils standard 
policycoreutils_2.0.72-2.diff.gz
 d059a7f786150057da5d6eb378aaedb4 444288 utils standard 
policycoreutils_2.0.72-2_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.13-svn0 (GNU/Linux)

iEYEAREDAAYFAkqgp78ACgkQIbrau78kQkzj4gCg0iA61MKwydQeP3mJl2k+B+0s
vwUAoO18V7ehPxj9/BXzHiLkM8flXPvX
=9uu2
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to