mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 06:16:03 +00:00
keep logprof/genprof from spinning forever if the very last line in the
logfile is "PERMITTING x access to ..."
This commit is contained in:
@@ -1535,8 +1535,9 @@ sub do_logprof_pass {
|
||||
if ($sdmode eq "PERMITTING") {
|
||||
do {
|
||||
$stuffed = <LOG>;
|
||||
} until $stuffed =~ /AppArmor|audit/;
|
||||
if ($stuffed =~ m/changing_profile/) {
|
||||
} until ((! $stuffed) || ($stuffed =~ /AppArmor|audit/));
|
||||
|
||||
if ($stuffed && ($stuffed =~ m/changing_profile/)) {
|
||||
$domainchange = "change";
|
||||
$stuffed = undef;
|
||||
}
|
||||
|
Reference in New Issue
Block a user