mirror of
https://github.com/engineer-man/piston.git
synced 2025-06-09 19:46:27 +02:00
Prevent users from spying on each other
This commit is contained in:
parent
c1872295c2
commit
9293cd271f
1 changed files with 9 additions and 0 deletions
|
@ -36,6 +36,15 @@ else
|
|||
fi
|
||||
exec 200>&-
|
||||
|
||||
# Prevent users from spying on each other
|
||||
lxc-attach --clear-env -n piston -- \
|
||||
/bin/bash -l -c "\
|
||||
chown runner$newinc: $filepath ;\
|
||||
chown runner$newinc: $argpath ;\
|
||||
chmod 700 $filepath ;\
|
||||
chmod 700 $argpath ;\
|
||||
" > /dev/null 2>&1
|
||||
|
||||
# runner
|
||||
timeout -s KILL 20 \
|
||||
lxc-attach --clear-env -n piston -- \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue