Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 686702 - app-emulation/libvirt-5.2.0-r2 problem with apparmor profile for virt-aa-helper
Summary: app-emulation/libvirt-5.2.0-r2 problem with apparmor profile for virt-aa-helper
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Matthias Maier
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2019-05-24 22:50 UTC by aporilel
Modified: 2019-07-01 14:27 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
fixed libvirt-5.0.0-fix-paths-for-apparmor.patch (fixed_libvirt-5.0.0-fix-paths-for-apparmor.patch,4.27 KB, patch)
2019-05-24 22:50 UTC, aporilel
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description aporilel 2019-05-24 22:50:14 UTC
Created attachment 577724 [details, diff]
fixed libvirt-5.0.0-fix-paths-for-apparmor.patch

There is a problem in the "libvirt-5.0.0-fix-paths-for-apparmor.patch" with the profile for virt-aa-helper.

The local profile was renamed to "usr.libexec.virt-aa-helper", but in the main profile there is still an include for "usr.lib.libvirt.virt-aa-helper".

The fixed patch is in attachment

>rename from src/security/apparmor/usr.lib.libvirt.virt-aa-helper
>rename to src/security/apparmor/usr.libexec.virt-aa-helper
...
>@@ -66,5 +66,5 @@
>   /**.[iI][sS][oO] r,
>   /**/disk{,.*} r,
> 
>-  #include <local/usr.lib.libvirt.virt-aa-helper>
>+  #include <local/usr.libexec.virt-aa-helper>
> }
Comment 1 aporilel 2019-05-24 23:46:31 UTC
P.S. the actual problem is that the current profile does not load.

>AppArmor parser error for usr.libexec.virt-aa-helper in usr.libexec.virt-aa-helper at line 69: Could not open 'local/usr.lib.libvirt.virt-aa-helper'
Comment 2 Larry the Git Cow gentoo-dev 2019-07-01 14:27:19 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46c770404a3482d0cc15d7748f71b5d2118deaba

commit 46c770404a3482d0cc15d7748f71b5d2118deaba
Author:     Matthias Maier <tamiko@gentoo.org>
AuthorDate: 2019-07-01 14:21:04 +0000
Commit:     Matthias Maier <tamiko@gentoo.org>
CommitDate: 2019-07-01 14:26:17 +0000

    app-emulation/libvirt: fix apparmor
    
    Closes: https://bugs.gentoo.org/686702
    Package-Manager: Portage-2.3.67, Repoman-2.3.16
    Signed-off-by: Matthias Maier <tamiko@gentoo.org>

 .../libvirt-5.0.0-fix-paths-for-apparmor.patch     |  10 +-
 .../libvirt-5.2.0-fix-paths-for-apparmor.patch     | 116 ++++++
 app-emulation/libvirt/libvirt-5.2.0-r3.ebuild      | 388 +++++++++++++++++++++
 3 files changed, 512 insertions(+), 2 deletions(-)