This section lists the most common problems and error messages that may occur using Novell AppArmor.
If you notice odd application behavior or any other type of application problem, you should first check the reject messages in the log files to see if AppArmor is too closely constricting your application. To check reject messages, start + and go to . Select and for the application audit report. You can filter dates and times to narrow down the specific periods when the unexpected application behavior occurred.
If you detect reject messages that indicate that your application or service is too closely restricted by AppArmor, update your profile to properly handle your use case of the application. Do this with the in YaST, as described in Section 3.5, “Updating Profiles from Log Entries”.
If you decide to run your application or service without AppArmor
protection, remove the application's profile from
/etc/apparmor.d or move it to another
location.
Apache is not starting properly or it is not serving Web pages and you
just installed a new module or made a configuration change. When you
install additional Apache modules (like
apache2-mod_apparmor) or make configuration changes to
Apache, you should profile Apache again to catch any additional rules that
need to be added to the profile.
When the reporting feature generates an HTML or CSV file that exceeds the default size, the file is not sent. Mail servers have a default, hard limit for e-mail size. This limitation can impede AppArmor's ability to send e-mails that are generated for reporting purposes. If your mail is not arriving, this could be why. Consider the mail size limits and check the archives if e-mails have not been received.
AppArmor always loads and applies all profiles that are available in its
profile directory (/etc/apparmor.d/). If you decide
not to apply a profile to a certain application, delete the appropriate
profile or move it to another location where AppArmor would not check for
it.
Managing profiles with AppArmor requires you to have access to a the
system's log the application is running on. So you do not need to run the
application on your profile build host as long as you have access to the
machine that runs the application. You can run the application on one
system, transfer the logs (/var/log/audit.log or, if
audit is not installed,
/var/log/messages) to your profile build host and run
aa-logprof -f
path_to_logfile.
Manually editing Novell AppArmor profiles can introduce syntax errors. If you attempt to start or restart AppArmor with syntax errors in your profiles, error results are shown. This example shows the syntax of the entire parser error.
localhost:~ # rcapparmor start Loading AppArmor profiles AppArmor parser error, line 2: Found unexpected character: ’h’ Profile /etc/apparmor.d/usr.sbin.squid failed to load failed
Using the AppArmor YaST tools, a graphical error message indicates which profile contained the error and requests you to fix it.
![]() |
To fix a syntax error, log in to a terminal window as root,
open the profile, and correct the syntax. Reload the profile set with
rcapparmor reload.