2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-31 06:16:03 +00:00

fix typo in fork tracking code that could result in applications that

are currently running while logprof/genprof is used being left in the 
null-complain profile instead of being moved to the profile the user
has just specified.  

the profiles are updated correctly though, so if the application is 
stopped and restarted, it will be confined by the appropriate profile.
This commit is contained in:
Jesse Michael
2007-03-21 15:54:57 +00:00
parent 5ec36e6c2b
commit e5ac6de656

View File

@@ -1691,7 +1691,7 @@ sub do_logprof_pass {
push @log, $arrayref;
}
$pid{$child} = $arrayref;
push @{$arrayref}, [ "fork", $child . $profile, $hat ];
push @{$arrayref}, [ "fork", $child, $profile, $hat ];
} else {
$DEBUGGING && debug "UNHANDLED: $_";
}