mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-28 21:07:56 +00:00
tests/profiles/tinyproxy/task.yaml: fix tinyproxy smoke test
Signed-off-by: Alex Murray <alex.murray@canonical.com>
This commit is contained in:
parent
94d494d8fe
commit
0217af9d82
@ -1,10 +1,14 @@
|
||||
summary: smoke test for the tinyproxy profile
|
||||
execute: |
|
||||
# enable tinyproxy service
|
||||
systemctl start tinyproxy
|
||||
# restart tinyproxy service as it may already be running
|
||||
systemctl restart tinyproxy
|
||||
|
||||
# wait for it to be running
|
||||
sleep 1
|
||||
|
||||
# check is running
|
||||
systemctl is-active tinyproxy
|
||||
|
||||
# tinyproxy system service is confined
|
||||
cat /proc/$(pidof tinyproxy)/attr/apparmor/current | MATCH 'tinyproxy (enforce)'
|
||||
# check tinyproxy system service is confined
|
||||
cat /proc/$(pidof tinyproxy)/attr/apparmor/current | MATCH 'tinyproxy \(enforce\)'
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user