Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
openSUSE:Evergreen:11.4
apparmor.import4985
apparmor-utils-cleanup-on-abort
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File apparmor-utils-cleanup-on-abort of Package apparmor.import4985
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> --- utils/SubDomain.pm | 3 +++ 1 file changed, 3 insertions(+) --- a/utils/SubDomain.pm +++ b/utils/SubDomain.pm @@ -1750,6 +1750,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; } }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor