Comment 2 for bug 1815295

Revision history for this message
Christian Boltz (cboltz) wrote :

You are reporting two issues that are (technically) completely different:

a) original bugreport

The tools are less flexible when it comes to whitespace, and require linebreaks after each rule, while the parser doesn't. Therefore "profile foobar {}" is known to fail. Fixing this would probably get us into a regex hell, so this is a wontfix IMHO (at least until the parser code gets moved to libapparmor and can be used by the tools, but I'd recommend not to hold your breath for that ;-)

b) comment #1

Handling files without a profile (only comments or empty files) should be easier to fix.