mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01: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:
parent
7618d69eca
commit
e94cd809e4
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue