mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-09-02 07:15:18 +00: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:
@@ -835,7 +835,7 @@ def ask_exec(hashlog):
|
|||||||
|
|
||||||
if os.path.isdir(exec_target):
|
if os.path.isdir(exec_target):
|
||||||
raise AppArmorBug(
|
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):
|
if not aa[profile].get(hat):
|
||||||
continue # ignore log entries for non-existing profiles
|
continue # ignore log entries for non-existing profiles
|
||||||
|
Reference in New Issue
Block a user