mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-18 00:58:31 +00:00
This test creates 2 users to check how secure is using criu with setuid bit set. Signed-off-by: Ruslan Kuprieiev <kupruser@gmail.com> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
12 lines
122 B
Bash
Executable file
12 lines
122 B
Bash
Executable file
#!/bin/bash
|
|
|
|
echo $$
|
|
|
|
if [ "$1" == "--chgrp" ]; then
|
|
grps=( $(groups) )
|
|
newgrp ${grps[1]}
|
|
fi
|
|
|
|
while :; do
|
|
sleep 1
|
|
done
|