[pkg-apparmor] Bug#1002560: /usr/sbin/aa-logprof: aa-logprof doesn't understand include if exists

Craig Small csmall at debian.org
Fri Dec 24 02:41:57 GMT 2021


Package: apparmor-utils
Version: 2.13.6-10
Severity: normal
File: /usr/sbin/aa-logprof
Control: affects -1 wordpress

Hi AppArmor maintainers,
  aa-logprof doesn't understand any lines that have include if exists.

$ sudo aa-logprof

ERROR: Syntax Error: Unknown line found in file apache2.d/wordpress line 17:
    include if exists <local/apache-wordpress>,

However the parser is fine about this.

Now, this might be because the include if exists line appears inside a
sub profile (It's the wordpress profile under apache).

The whole file can be found at [1] as its shipped with the Debian WordPress
package. Why is it needed? You may make the upload and theme directories
different (I do) for different websites.

I've put it affects wordpress just in case people come across it and
gives them a place to follow.

 - Craig

1: https://salsa.debian.org/debian/wordpress/-/blob/master/debian/apparmor/wordpress


-- System Information:
Debian Release: 11.2
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'stable-updates'), (500, 'stable-security'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-10-amd64 (SMP w/1 CPU thread)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages apparmor-utils depends on:
ii  apparmor          2.13.6-10
ii  python3           3.9.2-3
ii  python3-apparmor  2.13.6-10

apparmor-utils recommends no packages.

Versions of packages apparmor-utils suggests:
pn  vim-addon-manager  <none>

-- no debconf information



More information about the pkg-apparmor-team mailing list