I'm new to AppArmor. I'm trying to create a more restrictive AppArmor configuration for my plex server. I used chatgpt to walk me through this process, but it has seemingly broken my AppArmor install altogether.
Steps so far:
- It had me install the following:
sudo apt install apparmor apparmor-utils apparmor-profiles apparmor-profiles-extra - It had me create a pretty standard apparmor profile
- It had me run
sudo apparmor_parser -r /etc/apparmor.d/docker-plex - The offending line calls
<include tunables/global>to which I get the following output:AppArmor parser error for /etc/apparmor.d/docker-plex in profile /etc/apparmor.d/tunables/home at line 15: syntax error, unexpected TOK_EQUALS, expecting TOK_MODE - When I look in
tunables/homeat line 15, I see the following@{HOMEDIRS}=/home/ - chatgpt says this formatting is correct and I shouldn't be getting this error, which make sense because it's a system file I've never touched
- Now apparmor fails on system start. Systemctl shows it failing because of the above error.
No idea what's going on here. I've spent quite a few hours on this problem and have gotten nowhere. Any help is appreciated.
Other info: I'm on the latest Debian 13.1 and it's a fresh install