mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-09-04 08:15:21 +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") {
|
if ($sdmode eq "PERMITTING") {
|
||||||
do {
|
do {
|
||||||
$stuffed = <LOG>;
|
$stuffed = <LOG>;
|
||||||
} until $stuffed =~ /AppArmor|audit/;
|
} until ((! $stuffed) || ($stuffed =~ /AppArmor|audit/));
|
||||||
if ($stuffed =~ m/changing_profile/) {
|
|
||||||
|
if ($stuffed && ($stuffed =~ m/changing_profile/)) {
|
||||||
$domainchange = "change";
|
$domainchange = "change";
|
||||||
$stuffed = undef;
|
$stuffed = undef;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user