My LXD setup is as follows:
Debian 11 (bullseye) on the host and the containers are all (3) debian bullseye as well.
Everything works fine except apparmor.
Generally it seems to work fine but I can not get aa-logprof to work.
If I run aa-logprof it does not complain but it never finds anything that needs updating.
I installed rsyslog on the containers as aa-logprof reads from syslog.
The problem is that I get errors in rsyslog:
imklog: cannot open kernel log (/proc/kmsg): Permission denied. activation of module imklog failed [v8.2102.0 try https://www.rsyslog.com/e/2145 ]
How do I solve this?
I assume that rsyslog need this access so aa-logprof can update from rsyslog.
Many thanks in advance!