π ~1 min read
Table of contents
Symptom & Impact
Application returns permission denied despite correct filesystem ownership.
Environment & Reproduction
Observed after app updates that introduce new file paths.
sudo aa-status
sudo dmesg | grep -i apparmor | tail -n 40
Root Cause Analysis
AppArmor profile lacks allow rules for new file access paths or capabilities.
Quick Triage
Identify active profile and denial records.
sudo aa-status
sudo journalctl -k | grep -i apparmor | tail -n 80
ps aux | grep
Step-by-Step Diagnosis
Map denied operations and profile context from logs.
sudo grep -i apparmor /var/log/syslog | tail -n 100
sudo aa-logprof --help
sudo apparmor_parser -p /etc/apparmor.d/

Solution – Primary Fix
Update profile with needed permissions and reload AppArmor policy.
Still having issues? Our IT Consulting team can diagnose and resolve this for you. Get in touch for a free consultation.
sudoedit /etc/apparmor.d/
sudo apparmor_parser -r /etc/apparmor.d/
sudo systemctl restart apparmor

Solution – Alternative Approaches
Temporarily set profile to complain mode while collecting required access patterns.
sudo aa-complain /etc/apparmor.d/
Verification & Acceptance Criteria
Application works and denial messages stop for expected operations.
sudo aa-status
sudo journalctl -k | grep -i apparmor | tail -n 20
Rollback Plan
Restore previous profile and reload if behavior regresses.
sudo cp /etc/apparmor.d/.bak /etc/apparmor.d/
sudo apparmor_parser -r /etc/apparmor.d/
Prevention & Hardening
Profile new application releases in staging and codify rule updates.
sudo aa-status
sudo aa-enforce /etc/apparmor.d/
Related Errors & Cross-Refs
Related to snap confinement denials and mount namespace path changes.
Related tutorial: View the step-by-step tutorial for Ubuntu 26.04 LTS.
View all Ubuntu 26.04 LTS tutorials on the Tutorials Hub β
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
Ubuntu AppArmor administration and profile tuning documentation.
Need Expert Help?
If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today β we respond within one business day.