mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 13:58:22 +00:00
Add a small sleep call to the onexec test to give the forked process a
chance to run before verifying it's current and future confinement state. In testing the combined sleeps added roughly a second to onexec.sh's total time on relatively reasonable hardware. Signed-off-by: Steve Beattie <sbeattie@ubuntu.com> Acked-By: John Johansen <john.johansen@canonical.com> (via IRC)
This commit is contained in:
@@ -90,6 +90,9 @@ do_test()
|
|||||||
# check that transition does not happen before exec, and that transition
|
# check that transition does not happen before exec, and that transition
|
||||||
# is set
|
# is set
|
||||||
|
|
||||||
|
# give the onexec process a chance to run
|
||||||
|
sleep 0.05
|
||||||
|
|
||||||
if ! check_current $_pid $prof ; then
|
if ! check_current $_pid $prof ; then
|
||||||
checktestfg
|
checktestfg
|
||||||
return
|
return
|
||||||
|
Reference in New Issue
Block a user