Skip to content

aa-status: fix json generation

S Bender requested to merge Grimmauld/apparmor:json-fix into master
  • previously, aa-status --json --show profiles would return non-standard json
  • adding the --pretty flag would crash completely
  • closes #470 (closed)

Things done:

  • removed trailing ", " in json generation
  • generate json seperator (", ") for each new json field (profiles/processes) after the header if json is enabled

Tested on NixOS and apparmor 4.0.3 base, but should work on any version the patch applies on.

Merge request reports

Loading