AFAICS, the real work is done by external programs. In this case, /usr/sbin/aa-logprof --json https://github.com/yast/yast-apparmor/blob/master/src/lib/apparmor/logprof.rb#L16 I guess that it also won't work to use apparmor from the commandline.