Skip to content

Commit

Permalink
tests/main/snap-seccomp: dump profile content
Browse files Browse the repository at this point in the history
Extend test to dump existing profile.

Signed-off-by: Maciej Borzecki <[email protected]>
  • Loading branch information
bboozzoo committed Jan 29, 2025
1 parent 626573b commit e7f458a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/main/snap-seccomp/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ execute: |
SNAP_SECCOMP="$MOUNT_DIR/snapd/current$SNAP_SECCOMP"
fi
# we can dump existing profile
$SNAP_SECCOMP dump "${PROFILE}.bin2" "$PWD/bpf-dump"
test -s "$PWD/bpf-dump.allow"
test -s "$PWD/bpf-dump.deny"
# from the old test_complain
echo "Test that the @complain keyword works"
rm -f "${PROFILE}.bin2"
Expand Down

0 comments on commit e7f458a

Please sign in to comment.