Skip to content
Snippets Groups Projects
Commit c558a480 authored by Simon McVittie's avatar Simon McVittie
Browse files

apparmor-session-lockdown: produce more useful diagnostics


The list of profiles and processes isn't all that long. If we're
going to make assertions about this information, we should
probably show it first.

Reviewed-by: default avatarPhilip Withnall <philip.withnall@collabora.co.uk>
Signed-off-by: default avatarSimon McVittie <simon.mcvittie@collabora.co.uk>
Differential Revision: https://phabricator.apertis.org/D3448
parent 1131f61a
No related branches found
No related tags found
No related merge requests found
......@@ -140,7 +140,15 @@ def after_reboot():
log_subprocess('aa-status')
profiles = get_profiles()
for k, v in profiles.items():
print('# profile: {!r}: {!r}'.format(k, v))
processes = get_processes(profiles)
for k, v in processes.items():
print('# process: {!r}: {!r}'.format(k, v))
enforce_processes = filter_processes(processes, 'enforce')
enforce_process_profiles = [x[1] for x in enforce_processes]
complain_processes = filter_processes(processes, 'complain')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment