Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12:Update
libvirt.1263
apparmor-rework-fix.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File apparmor-rework-fix.patch of Package libvirt.1263
From 3037c78ed90f30a514a2e26990437009fa1ec5f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Bosdonnat?= <cbosdonnat@suse.com> Date: Tue, 28 Oct 2014 14:42:34 -0600 Subject: [PATCH] Teach virt-aa-helper to use TEMPLATE.qemu if the domain is kvm or kqemu --- src/security/virt-aa-helper.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) Index: libvirt-1.2.5/src/security/virt-aa-helper.c =================================================================== --- libvirt-1.2.5.orig/src/security/virt-aa-helper.c +++ libvirt-1.2.5/src/security/virt-aa-helper.c @@ -339,15 +339,25 @@ create_profile(const char *profile, cons int tlen, plen; int fd; int rc = -1; + const char *driver_name = NULL; if (virFileExists(profile)) { vah_error(NULL, 0, _("profile exists")); goto end; } + switch (virtType) { + case VIR_DOMAIN_VIRT_QEMU: + case VIR_DOMAIN_VIRT_KQEMU: + case VIR_DOMAIN_VIRT_KVM: + driver_name = "qemu"; + break; + default: + driver_name = virDomainVirtTypeToString(virtType); + } if (virAsprintfQuiet(&template, "%s/TEMPLATE.%s", APPARMOR_DIR "/libvirt", - virDomainVirtTypeToString(virtType)) < 0) { + driver_name) < 0) { vah_error(NULL, 0, _("template name exceeds maximum length")); goto end; }
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