Skip to content
Snippets Groups Projects
Commit e24d2979 authored by Andre Moreira Magalhaes's avatar Andre Moreira Magalhaes
Browse files

Update apparmor-tumbler with new instructions

With the test now ported to https://gitlab.apertis.org/tests/apparmor-tumbler


lets update the test template with new instructions to run the test

Signed-off-by: default avatarAndre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk>
parent 88b9ef65
No related branches found
No related tags found
No related merge requests found
...@@ -8,10 +8,12 @@ metadata: ...@@ -8,10 +8,12 @@ metadata:
priority: medium priority: medium
maintainer: "Apertis Project" maintainer: "Apertis Project"
description: "Tests that the tumbler profile doesn't cause false negatives and description: "Tests that the tumbler AppArmor profile doesn't cause false negatives and
that it does not allow arbitrary reading of files in the home that it does not allow arbitrary reading of files in the home
directory." directory."
macro_ostree_preconditions: apparmor-tumbler
expected: expected:
- "Both tests should report pass and not fail:" - "Both tests should report pass and not fail:"
- | - |
...@@ -21,23 +23,13 @@ metadata: ...@@ -21,23 +23,13 @@ metadata:
notes: notes:
- "The results of the tests printed to the standard output are enough to - "The results of the tests printed to the standard output are enough to
determine whether they passed or fail." determine whether they passed or fail."
- "If you get a failure and need to report a bug please run sudo watch-aa on - "If you get a failure and need to report a bug please check journalctl, run
a terminal and run the case that is failing (separately, if both), and add the test case again, and add the logs you get to the bug report."
the logs you get to the bug report."
install:
deps:
- bash
- busybox
- apertis-tests-apparmor-report
- apertis-tests-apparmor-tumbler
run: run:
steps: steps:
- "# Execute the following commands:" - "# Execute the following commands:"
- echo -n | sudo tee /var/log/audit/audit.log - common/run-test-in-systemd --name run-test-sh --timeout 900 ./run-test.sh
- common/run-test-in-systemd --name run-test-tumbler --timeout 900 apparmor/tumbler/test-tumbler
- sudo cat /var/log/audit/audit.log | aa_log_extract_tokens.pl PERMITTING REJECTING
parse: parse:
fixupdict: fixupdict:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment