2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-09-01 14:55:10 +00:00

Don't process events for profiles that no longer exist.

This commit is contained in:
Dominic Reynolds
2007-07-29 02:18:29 +00:00
parent 6f5bc70ae1
commit 3f2ed86bef

View File

@@ -1782,6 +1782,8 @@ sub add_audit_event_to_tree ( $$ ) {
# consistently passed # consistently passed
my $prog = "HINT"; my $prog = "HINT";
return if ( !profile_exists($profile) );
if ($e->{operation} eq "exec") { if ($e->{operation} eq "exec") {
add_to_tree( $e->{pid}, add_to_tree( $e->{pid},
"exec", "exec",