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

session-lockdown: provide better diagnostics


Reviewed-by: default avatarMathieu Duponchelle <mathieu.duponchelle@opencreed.com>
Signed-off-by: default avatarSimon McVittie <simon.mcvittie@collabora.co.uk>
Differential Revision: https://phabricator.apertis.org/D3638
parent 5276e507
No related branches found
No related tags found
No related merge requests found
...@@ -97,7 +97,10 @@ def get_processes(profiles): ...@@ -97,7 +97,10 @@ def get_processes(profiles):
# keep only unconfined processes that have a profile defined # keep only unconfined processes that have a profile defined
processes[filename] = { 'profile' : exe, processes[filename] = { 'profile' : exe,
'mode' : 'unconfined' } 'mode' : 'unconfined' }
elif p.strip() != 'unconfined': elif p.strip() == 'unconfined':
# this is fine: something like process 1 (systemd)
print('# unconfined process {!r} {!r} has no profile, ignoring'.format(filename, exe))
else:
not_ok('process {} {!r} context {!r} could not be ' not_ok('process {} {!r} context {!r} could not be '
'parsed'.format(filename, exe, p)) 'parsed'.format(filename, exe, p))
except: except:
......
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