Skip to content
Snippets Groups Projects

Fix appamor-gstreamer test

Merged Walter Lozano requested to merge wip/wlozano/fixes into apertis/v2025dev2
All threads resolved!
Files
4
@@ -15,21 +15,34 @@ mkdir "${TMPDIR}"
. "${PREFIX}/general.inc"
echo WAL 000
initialize "AppArmor:R.16/gstreamer1.0-decode" 0.5 \
"https://wiki.apertis.org/QA/Test_Cases/apparmor-gstreamer1.0"
echo WAL 010
make_profile ${TESTDIR}/gstreamer1.0/gstreamer1.0-decode.sh \
abstraction:chaiwala-base abstraction:gstreamer-1.0 \
abstraction:python /proc/*/mounts:r /usr/bin/python*:rix \
capability:dac_override ${TESTDIR}/chaiwala-test-media/**:rixm \
$pwd/:r
${TESTDIR}/bin/gstreamer1.0-decode.sh ${TESTDIR}/chaiwala-test-media
echo WAL 020
${TESTDIR}/bin/gstreamer1.0-decode.sh chaiwala-test-media
echo WAL 030
AUDIT_FILE="${TMPDIR}/audit.log"
RESULT="${TMPDIR}/complaint_tokens.log"
echo WAL 040
journalctl -S "${START_TIME}" -t audit -o cat > ${AUDIT_FILE}
extract_aa_tokens ${AUDIT_FILE} "DENIED" $RESULT
assert_file_empty $RESULT
echo WAL 050
shutdown
Loading