-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Describe the problem
When running the example playbook on a fresh iso install, a error stops the run at section 1.3.1.3
This is a expected error when trying to change AppArmor processes, which are unconfined into complain or enforce mode. This should either be a handled error or something similar
Expected behavior
The example playbook should run through
What is version of application which has the issue?
commit 14e7c75
What was the last working version of the application?
No response
What type of installation are you running?
OS (setup.py)
What type of device you use to interact with the application?
OS: [e.g. linux, windows, ios]
Example JSON snippet
No response
Anything in the logs that might be useful for us?
TASK [ansible-cis-ubuntu-2404 : SECTION1 | 1.3.1.3 | Ensure all AppArmor Profiles are in enforce or complain mode] ***
fatal: [192.168.168.129]: FAILED! => {"changed": false, "cmd": ["/usr/sbin/aa-complain", "/etc/apparmor.d/*"], "delta": "0:00:00.315043", "end": "2024-10-18 22:14:18.027420", "msg": "non-zero return code", "rc": 1, "start": "2024-10-18 22:14:17.712377", "stderr": "Traceback (most recent call last):\n File \"/usr/sbin/aa-complain\", line 33, in <module>\n tool.cmd_complain()\n File \"/usr/lib/python3/dist-packages/apparmor/tools.py\", line 140, in cmd_complain\n for (program, prof_filename, output_name) in self.get_next_for_modechange():\n File \"/usr/lib/python3/dist-packages/apparmor/tools.py\", line 97, in get_next_for_modechange\n aaui.UI_Info(_('Profile for %s not found, skipping') % output_name)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nTypeError: 'NoneType' object is not callable\n\n\nAn unexpected error occurred!\n\nFor details, see /tmp/apparmor-bugreport-vj14tzer.txt\nPlease consider reporting a bug at https://gitlab.com/apparmor/apparmor/-/issues\nand attach this file.", "stderr_lines": ["Traceback (most recent call last):", " File \"/usr/sbin/aa-complain\", line 33, in <module>", " tool.cmd_complain()", " File \"/usr/lib/python3/dist-packages/apparmor/tools.py\", line 140, in cmd_complain", " for (program, prof_filename, output_name) in self.get_next_for_modechange():", " File \"/usr/lib/python3/dist-packages/apparmor/tools.py\", line 97, in get_next_for_modechange", " aaui.UI_Info(_('Profile for %s not found, skipping') % output_name)", " ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^", "TypeError: 'NoneType' object is not callable", "", "", "An unexpected error occurred!", "", "For details, see /tmp/apparmor-bugreport-vj14tzer.txt", "Please consider reporting a bug at https://gitlab.com/apparmor/apparmor/-/issues", "and attach this file."], "stdout": "", "stdout_lines": []}
Additional information
No response
GurbanV
Metadata
Metadata
Assignees
Labels
No labels