Prevent users from spying on each other

This commit is contained in:
ThreshMain 2021-01-16 06:42:11 +01:00
parent c1872295c2
commit 9293cd271f
No known key found for this signature in database
GPG key ID: 5FCE2316C19586E7

View file

@ -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 -- \