Skip to main content
added 4 characters in body
Source Link

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:

  1. It had me install the following: sudo apt install apparmor apparmor-utils apparmor-profiles apparmor-profiles-extrasudo apt install apparmor apparmor-utils apparmor-profiles apparmor-profiles-extra
  2. It had me create a pretty standard apparmor profile
  3. It had me run "sudo apparmor_parser -r /etc/apparmor.d/docker-plex"sudo apparmor_parser -r /etc/apparmor.d/docker-plex
  4. The offending line calls <include tunables/global><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"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
  5. When I look in tunables/hometunables/home at line 15, I see the following "@{HOMEDIRS}=/home/"@{HOMEDIRS}=/home/
  6. 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
  7. 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

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:

  1. It had me install the following: sudo apt install apparmor apparmor-utils apparmor-profiles apparmor-profiles-extra
  2. It had me create a pretty standard apparmor profile
  3. It had me run "sudo apparmor_parser -r /etc/apparmor.d/docker-plex"
  4. 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"
  5. When I look in tunables/home at line 15, I see the following "@{HOMEDIRS}=/home/"
  6. 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
  7. 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

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:

  1. It had me install the following: sudo apt install apparmor apparmor-utils apparmor-profiles apparmor-profiles-extra
  2. It had me create a pretty standard apparmor profile
  3. It had me run sudo apparmor_parser -r /etc/apparmor.d/docker-plex
  4. 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
  5. When I look in tunables/home at line 15, I see the following @{HOMEDIRS}=/home/
  6. 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
  7. 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

Source Link

AppArmor Weird Behavior Debian 13.1

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:

  1. It had me install the following: sudo apt install apparmor apparmor-utils apparmor-profiles apparmor-profiles-extra
  2. It had me create a pretty standard apparmor profile
  3. It had me run "sudo apparmor_parser -r /etc/apparmor.d/docker-plex"
  4. 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"
  5. When I look in tunables/home at line 15, I see the following "@{HOMEDIRS}=/home/"
  6. 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
  7. 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