From 62b2cace20c1aae9197343e2f76a6328842a2e8d Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Jul 17 2006 13:40:31 +0000 Subject: * Mon Jul 17 2006 Dan Walsh 1.30.17-4 - Fix creation of restorecond pidfile --- diff --git a/policycoreutils-rhat.patch b/policycoreutils-rhat.patch index 25e55ca..dd1b98b 100644 --- a/policycoreutils-rhat.patch +++ b/policycoreutils-rhat.patch @@ -28213,7 +28213,7 @@ diff --exclude-from=exclude -N -u -r nsapolicycoreutils/po/zu.po policycoreutils msgstr "" diff --exclude-from=exclude -N -u -r nsapolicycoreutils/restorecond/restorecond.c policycoreutils-1.30.17/restorecond/restorecond.c --- nsapolicycoreutils/restorecond/restorecond.c 2006-07-03 07:52:43.000000000 -0400 -+++ policycoreutils-1.30.17/restorecond/restorecond.c 2006-07-17 09:09:42.000000000 -0400 ++++ policycoreutils-1.30.17/restorecond/restorecond.c 2006-07-17 09:37:26.000000000 -0400 @@ -30,9 +30,10 @@ * and makes sure that there security context matches the systems defaults * @@ -28255,7 +28255,7 @@ diff --exclude-from=exclude -N -u -r nsapolicycoreutils/restorecond/restorecond. exit(0); } -@@ -449,11 +452,14 @@ +@@ -449,22 +452,25 @@ if (master_fd < 0) exitApp("inotify_init"); @@ -28271,3 +28271,16 @@ diff --exclude-from=exclude -N -u -r nsapolicycoreutils/restorecond/restorecond. case '?': usage(argv[0]); } + } + read_config(master_fd); + +- write_pid_file(); +- + if (!debug_mode) + daemon(0, 0); + ++ write_pid_file(); ++ + while (watch(master_fd) == 0) { + }; + diff --git a/policycoreutils.spec b/policycoreutils.spec index 93c5b1f..53415f2 100644 --- a/policycoreutils.spec +++ b/policycoreutils.spec @@ -5,7 +5,7 @@ Summary: SELinux policy core utilities. Name: policycoreutils Version: 1.30.17 -Release: 3 +Release: 4 License: GPL Group: System Environment/Base Source: http://www.nsa.gov/selinux/archives/policycoreutils-%{version}.tgz @@ -111,6 +111,9 @@ rm -rf %{buildroot} [ -x /sbin/service ] && /sbin/service restorecond condrestart %changelog +* Mon Jul 17 2006 Dan Walsh 1.30.17-4 +- Fix creation of restorecond pidfile + * Mon Jul 17 2006 Dan Walsh 1.30.17-3 - Update translations - Update to new GCC