From bfeea6217ea47a036e54cb65e499e905ddc23244 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Wed, 29 Mar 2006 04:06:16 +0000 Subject: [PATCH] * Tue Mar 21 2006 Dan Walsh 1.30.1-3 - Add IN_MOVED_TO to catch renames --- policycoreutils-rhat.patch | 2 +- policycoreutils.spec | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/policycoreutils-rhat.patch b/policycoreutils-rhat.patch index 4688d8e..c74c8ae 100644 --- a/policycoreutils-rhat.patch +++ b/policycoreutils-rhat.patch @@ -507,7 +507,7 @@ diff --exclude-from=exclude -N -u -r nsapolicycoreutils/restorecond/restorecond. + ptr=calloc(1, sizeof(struct watchList)); + + if (!ptr) exitApp("Out of Memory"); -+ ptr->wd=inotify_add_watch (fd, dir, IN_CREATE); ++ ptr->wd=inotify_add_watch (fd, dir, IN_CREATE | IN_MOVED_TO ); + + ptr->dir=strdup(dir); + if (!ptr->dir) exitApp("Out of Memory"); diff --git a/policycoreutils.spec b/policycoreutils.spec index 197469f..5aa1e37 100644 --- a/policycoreutils.spec +++ b/policycoreutils.spec @@ -5,7 +5,7 @@ Summary: SELinux policy core utilities. Name: policycoreutils Version: 1.30.1 -Release: 2 +Release: 3 License: GPL Group: System Environment/Base Source: http://www.nsa.gov/selinux/archives/policycoreutils-%{version}.tgz @@ -107,6 +107,9 @@ rm -rf ${RPM_BUILD_ROOT} service restorecond condrestart %changelog +* Tue Mar 21 2006 Dan Walsh 1.30.1-3 +- Add IN_MOVED_TO to catch renames + * Tue Mar 21 2006 Dan Walsh 1.30.1-2 - make restorecond only ignore non directories with lnk > 1