4 Commits
Author SHA1 Message Date
Philipp Bartsch cf99938ea5 nixosTests.apparmor: adapt test to new pathname style
Since https://github.com/NixOS/nixpkgs/pull/443245 file rules are
written with the pathname first.

Also somehow the sorting was strange.
2026-01-09 13:51:03 +01:00
Grimmauld 8cc442c085 nixos/tests/apparmor: fix test baseline 2025-03-14 17:33:19 +01:00
Martin Weinelt 653313abe1 nixosTests.apparmor: migrate to runTest
Part Of #386873
2025-03-13 23:31:20 +01:00
Grimmauld b27f064b54 nixos/tests/apparmor: move to folder, refactor, improve coverage
- nixfmt on apparmor test
- move apparmor test to nixos/tests/apparmor directory
- expected profile contents are now generated in its own file to make the test file less confusing and hard to maintain
- enforce/complain is now being tested via diff of expected against aa-status
- path is now tested against diff+file checking symlink target of /etc/static/apparmor.d/<name>
- profile is now checked by diff of /etc/static/apparmor.d/<name> against original string added in nix config
- test still successfully passes
- added test for confined hello to succeed
- added test for confined hexdump on denied path to fail
2024-12-16 15:32:48 +01:00