Skip to content
Snippets Groups Projects
Commit 6a007ac5 authored by Simon McVittie's avatar Simon McVittie
Browse files

apparmor/automated: Move test profiles to this subdirectory


This keeps everything more self-contained.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
Reviewed-by: default avatarEmanuele Aina <emanuele.aina@collabora.co.uk>
Differential Revision: https://phabricator.apertis.org/D6918
parent 62cdf27d
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,6 @@ APPARMOR_PROFILES_DIRS=(
"/etc/apparmor.d/local"
"/etc/apparmor.d/tunables")
AUDIT_LOG="/var/log/audit/audit.log"
RESOURCE_DIR="$(cd "${TESTDIR}/../../resources" && pwd)"
#########
# Setup #
......@@ -80,12 +79,12 @@ test_apparmor_enabled() {
# Check if profiles are being parsed correctly
test_profile_parsing() {
local ret=0
if ! /sbin/apparmor_parser -Q "${RESOURCE_DIR}/apparmor/test-profiles/usr.lib.valid-profile"; then
if ! /sbin/apparmor_parser -Q "${TESTDIR}/test-profiles/usr.lib.valid-profile"; then
whine "Failed to parse a valid profile!"
ret=1
fi
if /sbin/apparmor_parser -Q "${RESOURCE_DIR}/apparmor/test-profiles/usr.lib.invalid-profile"; then
if /sbin/apparmor_parser -Q "${TESTDIR}/test-profiles/usr.lib.invalid-profile"; then
whine "Successfully parsed an invalid profile!"
ret=1
fi
......
......@@ -6,10 +6,10 @@ Copyright:
License: MPL-2.0
Files:
apparmor/automated/test-profiles/*
apparmor/goals/*
apparmor/gstreamer1.0/mkprofile.pl
usr/bin/aa_log_extract_tokens.pl
resources/apparmor/test-profiles/*
Copyright:
© 2006 Novell, Inc.
© 1998-2007 Novell/SuSE/Immunix
......
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