This bug was fixed in the package apparmor - 4.0.0~alpha2-0ubuntu2
---------------
apparmor (4.0.0~alpha2-0ubuntu2) mantic; urgency=medium
* Fix invalid JSON output from aa-status --json via upstream patch
(LP: #2032994)
- d/p/u/binutils-aa_status.c-quiet-verbose-outputs-when-json.patch
-- Alex Murray <[email protected]> Fri, 25 Aug 2023 09:48:24
+0930
** Changed in: apparmor (Ubuntu)
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apparmor in Ubuntu.
https://bugs.launchpad.net/bugs/2032994
Title:
apparmor 4.0.0~alpha2-0ubuntu1 has extra content in aa-status --json
output
Status in apparmor package in Ubuntu:
Fix Released
Bug description:
aa-status --json now includes an extra line of output before the
actual json output which breaks tools like jq:
$ sudo aa-status --json
apparmor module is loaded.
{"version": "2", "profiles": {"/snap/snapd/19993/usr/lib/snapd/snap-confine":
"enforce",
"/snap/snapd/19993/usr/lib/snapd/snap-confine//mount-namespace-capture-helper":
"enforce", "/usr/bin/man": "enforce", "/usr/bin/pidgin": "enforce",
"/usr/bin/pidgin//sanitized_helper": "enforce", "/usr/bin/totem": "enforce",
"/usr/bin/totem-audio-preview": "enforce", "/usr/bin/totem-video-thumbnailer":
"enforce", "/usr/bin/totem//sanitized_helper": "enforce",
"/usr/lib/NetworkManager/nm-dhcp-client.action": "enforce",
"/usr/lib/NetworkManager/nm-dhcp-helper": "enforce",
"/usr/lib/connman/scripts/dhclient-script": "enforce",
"/usr/lib/snapd/snap-confine": "enforce",
"/usr/lib/snapd/snap-confine//mount-namespace-capture-helper": "enforce",
"/{,usr/}sbin/dhclient": "enforce", "apt-cacher-ng": "enforce", "lsb_release":
"enforce", "man_filter": "enforce", "man_groff": "enforce", "nvidia_modprobe":
"enforce", "nvidia_modprobe//kmod": "enforce", "rsyslogd": "enforce",
"snap-update-ns.lxd": "enforce",
"snap.lxd.activate": "enforce", "snap.lxd.benchmark": "enforce",
"snap.lxd.buginfo": "enforce", "snap.lxd.check-kernel": "enforce",
"snap.lxd.daemon": "enforce", "snap.lxd.hook.configure": "enforce",
"snap.lxd.hook.install": "enforce", "snap.lxd.hook.remove": "enforce",
"snap.lxd.lxc": "enforce", "snap.lxd.lxc-to-lxd": "enforce", "snap.lxd.lxd":
"enforce", "snap.lxd.migrate": "enforce", "snap.lxd.user-daemon": "enforce",
"tcpdump": "enforce", "/usr/bin/irssi": "complain", "/usr/bin/ch-checkns":
"unconfined", "/usr/bin/ch-run": "unconfined", "/usr/bin/crun": "unconfined",
"/usr/bin/flatpak": "unconfined"}, "processes": {"/usr/sbin/rsyslogd":
[{"profile": "rsyslogd", "pid": "583", "status": "enforce"}]}
}
$ sudo aa-status --json | jq .
parse error: Invalid numeric literal at line 1, column 9
Proposed fix upstreeam
https://gitlab.com/apparmor/apparmor/-/merge_requests/1097
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/2032994/+subscriptions
--
Mailing list: https://launchpad.net/~touch-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help : https://help.launchpad.net/ListHelp