Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:Update
libvirt.6841
apparmor-errormsg-fix.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File apparmor-errormsg-fix.patch of Package libvirt.6841
commit 789999f481b31398f147e547550184bf303ce729 Author: Jim Fehlig <jfehlig@suse.com> Date: Thu Feb 2 19:17:29 2017 -0700 apparmor: don't overwrite error from reload_profile Like other callers of reload_profile, don't overwrite errors in AppArmorSetSecurityHostdevLabelHelper. Index: libvirt-2.0.0/src/security/security_apparmor.c =================================================================== --- libvirt-2.0.0.orig/src/security/security_apparmor.c +++ libvirt-2.0.0/src/security/security_apparmor.c @@ -321,19 +321,7 @@ AppArmorSetSecurityHostdevLabelHelper(co struct SDPDOP *ptr = opaque; virDomainDefPtr def = ptr->def; - if (reload_profile(ptr->mgr, def, file, true) < 0) { - virSecurityLabelDefPtr secdef = virDomainDefGetSecurityLabelDef( - def, SECURITY_APPARMOR_NAME); - if (!secdef) { - virReportOOMError(); - return -1; - } - virReportError(VIR_ERR_INTERNAL_ERROR, - _("cannot update AppArmor profile \'%s\'"), - secdef->imagelabel); - return -1; - } - return 0; + return reload_profile(ptr->mgr, def, file, true); } static int
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