diff --git a/utils/apparmor/logparser.py b/utils/apparmor/logparser.py index 85422b062..9d1778acc 100644 --- a/utils/apparmor/logparser.py +++ b/utils/apparmor/logparser.py @@ -238,6 +238,8 @@ class ReadLog: case 'io_uring': ev['peer_profile'] = event.peer_profile + case 'capability': + ev['comm'] = event.comm if not ev['time']: ev['time'] = int(time.time()) diff --git a/utils/test/test-capability.py b/utils/test/test-capability.py index e41808847..1858df745 100644 --- a/utils/test/test-capability.py +++ b/utils/test/test-capability.py @@ -138,6 +138,7 @@ class CapabilityTest(AATest): 'active_hat': None, 'pid': 15454, 'task': 0, + 'comm': 'ping', 'attr': None, 'name2': None, 'name': 'net_raw',