1

I have a fresh Debian 12 installed and updated. Along with Cockpit and Cockpit virtual machines.

I am getting the following errors and warning when looking at the log section in Cockpit:

Failed to open file '/sys/kernel/security/apparmor/profiles': Permission denied libvirtd

Failed to read AppArmor profiles list '/sys/kernel/security/apparmor/profiles': Permission denied libvirtd

Failed to open file '/sys/kernel/security/apparmor/profiles': Permission denied libvirtd

The virtual machines start up and has no issues. However, the errors pop up after every reboot once I click the virtual machines section on Cockpit. These errors only show then, and not when I do not go to virtual machines section in Cockpit. So it seems to only start once you go to that section in Cockpit.

Has anyone else experience this issue? It gives exactly the same warnings / errors on Ubuntu 22.04 as well.

Esa Jokinen
  • 46,944
  • 3
  • 83
  • 129
Clicker85
  • 11
  • 1
  • you may edit the profile to add an allow read to the profile. apparmor restrict this. – djdomi Aug 13 '23 at 06:40
  • @djdomi - *edit the profile to add an allow read to the profile* - I'm sure this is meaningful to you, but it's not – Jaromanda X Aug 13 '23 at 09:44
  • Profile /etc/apparmor.d/usr.sbin.libvirtd is giving access to /sys/kernel/apparmor/profiles r,. Yet, error messages still show up in log. – Clicker85 Aug 13 '23 at 19:37

0 Answers0