I'm currently trying to set up Apparmor on my install, and I've stumbled upon this up-to-date repository of extra profiles. Only problem with it, as far as I can see, is that it's based on the upstream version of Apparmor, and the Gentoo version is a little bit behind. I've been manually picking profiles and the required abstractions/tunables and trying to edit them so that they work with Gentoo Apparmor (as far as I can tell). So far, all I really did was decreasing the abi from 4.0 to 3.0, removing all mentions of the @{exec_path} variable in each profile (apparently leaving them in causes issues upon loading the profiles because the parser seems to think the same variable is being redefined several times), and changing the value of the @{bin} abstraction to be the same as @{sbin}, since they're both essentially the same on Gentoo. I've done it for a few profiles now, it seems to be working alright.
But I have a bit of an issue with the profile for man. When I try to set it to Complain Mode, I get this output :
Code: Select all
aa-complain man
Setting /usr/bin/man to complain mode.
ERROR: /etc/apparmor.d/usr.bin.man doesn't contain a valid profile for /usr/bin/man (syntax error?)I've done a lot of research on the subject, but I didn't come up with much. The closest I could find was this thread, but I don't think this is my issue. I've tried these commands:
Code: Select all
aa-complain man
aa-complain /usr/bin/man
aa-complain /usr/sbin/man
aa-complain usr.bin.manDoes anyone knowledgeable with Apparmor can help me figure out what's wrong?

