Bug ID 1208167
Summary AppArmor parser error for /etc/apparmor.d in profile /etc/apparmor.d/usr.bin.lxc-start at line 4: Could not open 'abstractions/lxc/start-container'
Classification openSUSE
Product openSUSE Tumbleweed
Version Current
Hardware Other
OS Other
Status NEW
Severity Normal
Priority P5 - None
Component Containers
Assignee containers-bugowner@suse.de
Reporter tamuratak.9876@gmail.com
QA Contact qa-bugs@suse.de
Found By ---
Blocker ---

Step to reproduce:

- Install lxc package
- I see the following error message on AppArmor.

I guess the cause would be that lxc package doesn't include
config/apparmor/abstractions/start-container

https://github.com/lxc/lxc/blob/master/config/apparmor/abstractions/start-container.in

$ sudo systemctl status apparmor.service
x apparmor.service - Load AppArmor profiles
     Loaded: loaded (/usr/lib/systemd/system/apparmor.service; enabled; preset:
enabled)
     Active: failed (Result: exit-code) since Sun 2023-02-12 10:37:15 JST; 3h
39min ago
    Process: 737 ExecStart=/lib/apparmor/apparmor.systemd reload (code=exited,
status=1/FAILURE)
   Main PID: 737 (code=exited, status=1/FAILURE)
        CPU: 128ms

Feb 12 10:37:15 localhost systemd[1]: Starting Load AppArmor profiles...
Feb 12 10:37:15 localhost apparmor.systemd[737]: Restarting AppArmor
Feb 12 10:37:15 localhost apparmor.systemd[737]: Reloading AppArmor profiles
Feb 12 10:37:15 localhost apparmor.systemd[745]: Warning from stdin (line 1):
Cache: failed to add read only location '/usr/share/apparmor/cache', does not
contain valid cache directory for the specified feature set
Feb 12 10:37:15 localhost apparmor.systemd[760]: AppArmor parser error for
/etc/apparmor.d in profile /etc/apparmor.d/usr.bin.lxc-start at line 4: Could
not open 'abstractions/lxc/start-container'
Feb 12 10:37:15 localhost apparmor.systemd[737]: Error: At least one profile
failed to load
Feb 12 10:37:15 localhost systemd[1]: apparmor.service: Main process exited,
code=exited, status=1/FAILURE
Feb 12 10:37:15 localhost systemd[1]: apparmor.service: Failed with result
'exit-code'.
Feb 12 10:37:15 localhost systemd[1]: Failed to start Load AppArmor profiles.


$  cat /etc/os-release 
NAME="openSUSE Tumbleweed"
# VERSION="20230210"
ID="opensuse-tumbleweed"
ID_LIKE="opensuse suse"
VERSION_ID="20230210"
PRETTY_NAME="openSUSE Tumbleweed"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:tumbleweed:20230210"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"
DOCUMENTATION_URL="https://en.opensuse.org/Portal:Tumbleweed"
LOGO="distributor-logo-Tumbleweed"

$  rpm -qi lxc
Name        : lxc
Version     : 5.0.1
Release     : 2.1
Architecture: x86_64


You are receiving this mail because: