mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-03-04 06:34:43 +01:00
1.6 KiB
1.6 KiB
title |
---|
Overview |
Misconfigured AppArmor profiles is one of the most effective ways to break someone's system. This section present the various tests applied to the profiles as well as their current stage of deployment.
Current
-
Build:
make
- Build the profiles for all supported distributions.
- All CI jobs validate the profiles syntax and ensure they can be safely loaded into a kernel.
- Ensure the profile entry point (
@{exec_path}
) is defined.
-
Checks:
make check
checks basic style of profiles:- Ensure apparmor.d header & licence
- Ensure 2 spaces indentation
- Ensure local include for profile and subprofiles
- Ensure abi 4 is used
- Ensure modern profile naming
- Ensure
vim:syntax=apparmor
-
Integration Tests:
make integration
Plan
For more complex software suite, more integration tests need to be done. The plan is to run existing integration suite from these very software in an environment with apparmor.d
profiles.
-
Systemd
- They use mkosi to generate a VM image to run their own integration tests.
- See https://www.codethink.co.uk/articles/2024/systemd-integration-testing-part-1/
-
Gnome
- They use openQA to run their integration tests.
- See https://gitlab.gnome.org/GNOME/openqa-tests/