mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-22 04:56:30 +02:00
Prevent users from spying on each other
This commit is contained in:
parent
563cf19068
commit
f9dddb42d6
1 changed files with 6 additions and 1 deletions
|
@ -37,7 +37,12 @@ else
|
||||||
echo $newinc > $dir/i
|
echo $newinc > $dir/i
|
||||||
fi
|
fi
|
||||||
exec 200>&-
|
exec 200>&-
|
||||||
|
# Prevent users from spying on each other
|
||||||
|
lxc-attach --clear-env -n piston -- \
|
||||||
|
/bin/bash -l -c "\
|
||||||
|
chown runner$newinc: -R /tmp/$epoch ;\
|
||||||
|
chmod 700 /tmp/$epoch ;\
|
||||||
|
" > /dev/null 2>&1
|
||||||
# runner
|
# runner
|
||||||
timeout -s KILL 20 \
|
timeout -s KILL 20 \
|
||||||
lxc-attach --clear-env -n piston -- \
|
lxc-attach --clear-env -n piston -- \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue