mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 13:58:22 +00:00
spread smoke-test for nc.openbsd
This commit is contained in:
12
tests/profiles/nc.openbsd/task.yaml
Normal file
12
tests/profiles/nc.openbsd/task.yaml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
summary: smoke test for the nc.openbsd profile
|
||||||
|
execute: |
|
||||||
|
# IPv4, IPv6
|
||||||
|
nc -4 -l 4321 & (echo "hi" | nc -4 -q 0 127.0.0.1 4321)
|
||||||
|
nc -6 -l 4321 & (echo "hi" | nc -6 -q 0 ::1 4321)
|
||||||
|
|
||||||
|
# UNIX sockets
|
||||||
|
nc -l -U /tmp/socket & (echo "hi" | nc -q 0 -U /tmp/socket)
|
||||||
|
nc -l -U '@tmpsocket' & (echo "hi" | nc -q 0 -U '@tmpsocket')
|
||||||
|
|
||||||
|
# The profile is attached based on the program path.
|
||||||
|
"$SPREAD_PATH"/tests/bin/actual-profile-of nc.openbsd | MATCH 'nc.openbsd \(enforce\)'
|
Reference in New Issue
Block a user