2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-09-05 00:35:13 +00:00

From: Jeff Mahoney <jeffm@suse.com>

Subject: [PATCH] apparmor-utils: cleanup after abort in genprof
References: bnc#307067

 The initial generation of the base profile is required to be written out
 to put the process in complain mode for observation. If the user
 decides to abort the profiling session, that base profile is left
 behind.

 This patch removes all profiles created during the run up to an abort.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
This commit is contained in:
Steve Beattie
2011-02-08 14:50:43 -08:00
parent 974d0a33b0
commit bf9a559dcc

View File

@@ -1794,6 +1794,9 @@ sub confirm_and_abort() {
if ($ans eq "y") {
UI_Info(gettext("Abandoning all changes."));
shutdown_yast();
foreach my $prof (@created) {
delete_profile($prof);
}
exit 0;
}
}