Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP5:Update
apparmor
apparmor-fix-uninitialized-warnings.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File apparmor-fix-uninitialized-warnings.patch of Package apparmor
From: Goldwyn Rodrigues <rgoldwyn@suse.com> Subject: [PATCH] Fix warnings while running aa-logprof References: bsc#1111965 Fix the following warnings while running aa-logprof: /usr/lib/perl5/vendor_perl/5.18.2/Immunix/AppArmor.pm line 2821, <$LOG> line 2. Use of uninitialized value $profile in string ne at /usr/lib/perl5/vendor_perl/5.18.2/Immunix/AppArmor.pm line 2829, <$LOG> line 2. Use of uninitialized value in split at /usr/lib/perl5/vendor_perl/5.18.2/Immunix/AppArmor.pm line 2821, <$LOG> line 8. Use of uninitialized value $profile in string ne at /usr/lib/perl5/vendor_perl/5.18.2/Immunix/AppArmor.pm line 2829, <$LOG> line 8. --- utils/Immunix/AppArmor.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/utils/Immunix/AppArmor.pm +++ b/utils/Immunix/AppArmor.pm @@ -2818,7 +2818,9 @@ sub add_event_to_tree ($) { #screen out change_hat events that aren't part of learning, as before #AppArmor 2.4 these events only happend as hints during learning return if ($sdmode ne "HINT" && $sdmode ne "PERMITTING"); - ($profile, $hat) = split /\/\//, $e->{name}; + if ($e->{name}) { + ($profile, $hat) = split /\/\//, $e->{name}; + } } $hat = $profile if ( !$hat ); # TODO - refactor add_to_tree as prog is no longer supplied
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