apparmor/tests/stress/subdomain/stress.sh
Steve Beattie 66286494a2 Resurrect another of the stress tests; it kinda works, though it requires
killall-ing a few things in order to make it stop. And alas, it does seem
to eventually cause kernel hangs with 2.6.32-16. (Committing now before ext4
eats my changes and brain.)
2010-03-10 20:56:47 -08:00

21 lines
457 B
Bash
Executable file

#!/bin/sh
. ./uservars.inc
${subdomain_parser} change_hat.profile child.profile open.profile
rm -f /tmp/foobar && touch /tmp/foobar
./open & ./open /tmp/foobar &
./child & ./child &
./change_hat > /dev/null 2>&1 & ./change_hat /tmp/foo > /dev/null 2>&1 &
while :
do
${subdomain_parser} -r change_hat.profile > /dev/null 2>&1 &
${subdomain_parser} -r child.profile > /dev/null 2>&1 &
${subdomain_parser} -r open.profile > /dev/null 2>&1 &
done &