mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-06 17:31:01 +01:00
Include profile name in error message on directory exec
... to make the error message more helpful. Inspired by https://gitlab.com/apparmor/apparmor/-/issues/285
This commit is contained in:
parent
b904fe78a7
commit
ef5c4b5085
1 changed files with 1 additions and 1 deletions
|
@ -835,7 +835,7 @@ def ask_exec(hashlog):
|
|||
|
||||
if os.path.isdir(exec_target):
|
||||
raise AppArmorBug(
|
||||
'exec permissions requested for directory %s. This should not happen - please open a bugreport!' % exec_target)
|
||||
'exec permissions requested for directory %s (profile %s). This should not happen - please open a bugreport!' % (exec_target, full_profile))
|
||||
|
||||
if not aa[profile].get(hat):
|
||||
continue # ignore log entries for non-existing profiles
|
||||
|
|
Loading…
Add table
Reference in a new issue