apparmor="DENIED" operation="open" class="file" profile="virt-aa-helper" name="/etc/gnutls/config"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apparmor (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Noble |
Fix Released
|
Undecided
|
Unassigned | ||
chrony (Ubuntu) |
Won't Fix
|
Undecided
|
John Johansen | ||
Noble |
Won't Fix
|
Undecided
|
Unassigned | ||
gnutls28 (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned | ||
Noble |
Won't Fix
|
Undecided
|
Unassigned | ||
libvirt (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned | ||
Noble |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Christian summarizes this after the great reports by Martin:
gnutls started to ship forceful disables in pkg/import/
Due to that anything linked against gnutls while being apparmor isolated now hits similar denials, preventing the desired effect of the config change BTW.
I think for safety we WANT to always allow this access, otherwise people will subtly not have crypto control about the more important (those isolated) software. Because after the denial I'd expect this to not really disable it in the program linked to gnutls (details might vary depending what they really use gnutls for).
I do not nkow of a gnutls abstraction to use, but TBH I'm afraid now fixing a few but leaving this open in some others not spotted.
I'd therefore suggest, but we need to discuss, to therefore change it in /etc/apparmor.
Therefore I'm adding gnutls (and Adrien) as well as apparmor to the bug tasks.
--- --- --- --- --- --- --- --- --- --- --- ---
--- --- --- --- --- --- --- --- --- --- --- ---
Merely booting current noble cloud image with "chrony" installed causes this:
audit: type=1400 audit(171015284
--- --- --- --- --- --- --- --- --- --- --- ---
--- --- --- --- --- --- --- --- --- --- --- ---
Running any VM in libvirt causes a new AppArmor violation in current noble. This is a regression, this didn't happen in any previous release.
Reproducer:
virt-install --memory 50 --pxe --virt-type qemu --os-variant alpinelinux3.8 --disk none --wait 0 --name test1
(This is the simplest way to create a test VM. But it's form or shape doesn't matter at all).
Results in lots of
audit: type=1400 audit(171014667
libvirt-daemon 10.0.0-2ubuntu1
apparmor 4.0.0~alpha4-
libgnutls30:amd64 3.8.3-1ubuntu1
Related branches
- Andreas Hasenack: Needs Fixing
- Adrien Nader (community): Approve
- Ubuntu Security Team: Pending requested
- Canonical Server Reporter: Pending requested
-
Diff: 61 lines (+39/-0)3 files modifieddebian/changelog (+7/-0)
debian/patches/series (+1/-0)
debian/patches/ubuntu/allow-common-crypto-config.patch (+31/-0)
tags: | added: cockpit-test |
description: | updated |
description: | updated |
Changed in chrony (Ubuntu): | |
status: | New → Won't Fix |
Changed in gnutls28 (Ubuntu): | |
status: | New → Won't Fix |
Changed in libvirt (Ubuntu): | |
status: | New → Won't Fix |
Hi Martin,
as always thanks for your post FF testing and reports.
Thank you for also filing bug 2056747 - it starts to show that this is a generic thing which probably anything linked against gnutls and being confined will hit.
reverse-depends --release=noble --build-depends libgnutls28-dev | wc -l
182
Unless later decided otherwise I'd think we should not look for many many individual rules but adding it to an abstraction or so, so for now I'd mark these as dups to each other and file it against gnutls as well.