Apparmor 3.0.0 does not load profiles in containers anymore
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apparmor (Ubuntu) |
Fix Released
|
Critical
|
Jamie Strandboge |
Bug Description
Hi,
I stumbled over this due to automatic tests checking proposed.
I found that Focal no more could migrate to Groovy with:
$ virsh migrate --unsafe --live fguest qemu+ssh:
error: unsupported configuration: Security driver model 'apparmor' is not available
I looked after it and found that while all former releases detected apparmor correctly:
$ virsh capabilities | grep -C 3 secmodel
<cache>
<bank id='0' level='3' type='both' size='15' unit='MiB' cpus='0-11'/>
</cache>
<secmodel>
<
<doi>0</doi>
</secmodel>
<secmodel>
<
<doi>0</doi>
<baselabel type='kvm'
<baselabel type='qemu'
</secmodel>
Now on groovy that didn't work anymore:
<secmodel>
<
<doi>0</doi>
</secmodel>
<secmodel>
<
<doi>0</doi>
<baselabel type='kvm'
<baselabel type='qemu'
</secmodel>
Since 3.0 is only in proposed:
# apt-cache policy apparmor
apparmor:
Installed: 2.13.3-7ubuntu6
Candidate: 3.0.0~beta1-
Version table:
3.
500 http://
*** 2.13.3-7ubuntu6 500
500 http://
100 /var/lib/
I installed the former version.
$ apt install apparmor=
$ rm /var/cache/
$ systemctl restart libvirtd
And it works again.
Interestingly going back to 3.0 then works and keeps working.
Therefore maybe it is a red-herring and I'll consider it incomplete & low prio for now until I know more (allowing others that might see the same to find this bug and chime in).
Related branches
- Jamie Strandboge (community): Approve
- John Johansen: Pending requested
- Canonical Server packageset reviewers: Pending requested
- Canonical Server: Pending requested
- git-ubuntu developers: Pending requested
-
Diff: 52 lines (+9/-21)3 files modifieddebian/changelog (+9/-0)
debian/patches/series (+0/-1)
dev/null (+0/-20)
Changed in apparmor (Ubuntu): | |
status: | New → Incomplete |
importance: | Undecided → Low |
Changed in apparmor (Ubuntu): | |
status: | Confirmed → In Progress |
assignee: | nobody → Jamie Strandboge (jdstrand) |
It seems once fixed the system is ok and I can't get into the bad state again :/
I tried on another bad system (withotu changing back to the former version)
1. A restart of the service
2. Trying to force capabilities reset (remove cache) + service restart
None of these got it into the good case, so I might be able to debug here what happens when probing.