From 33a58a858d57cb637a2b86df211505921b8b7795 Mon Sep 17 00:00:00 2001 From: Jesse Michael Date: Thu, 29 Mar 2007 16:39:28 +0000 Subject: [PATCH] keep logprof/genprof from spinning forever if the very last line in the logfile is "PERMITTING x access to ..." --- utils/SubDomain.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/utils/SubDomain.pm b/utils/SubDomain.pm index 922bcedfd..ba01b4458 100755 --- a/utils/SubDomain.pm +++ b/utils/SubDomain.pm @@ -1535,8 +1535,9 @@ sub do_logprof_pass { if ($sdmode eq "PERMITTING") { do { $stuffed = ; - } until $stuffed =~ /AppArmor|audit/; - if ($stuffed =~ m/changing_profile/) { + } until ((! $stuffed) || ($stuffed =~ /AppArmor|audit/)); + + if ($stuffed && ($stuffed =~ m/changing_profile/)) { $domainchange = "change"; $stuffed = undef; }