mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 13:58:22 +00:00
utils: fix dbus access string formatting
The AppArmorBug exception was missing the variable from the message Signed-off-by: Georgia Garcia <georgia.garcia@canonical.com>
This commit is contained in:
@@ -1696,7 +1696,7 @@ def collapse_log(hashlog, ignore_null_profiles=True):
|
||||
elif access == 'eavesdrop':
|
||||
dbus_event = DbusRule(access, bus, DbusRule.ALL, DbusRule.ALL, DbusRule.ALL, DbusRule.ALL, DbusRule.ALL, DbusRule.ALL, log_event=True)
|
||||
else:
|
||||
raise AppArmorBug('unexpected dbus access: %s')
|
||||
raise AppArmorBug('unexpected dbus access: {}'.format(access))
|
||||
|
||||
if not hat_exists or not is_known_rule(aa[profile][hat], 'dbus', dbus_event):
|
||||
log_dict[aamode][full_profile]['dbus'].add(dbus_event)
|
||||
|
Reference in New Issue
Block a user