Skip to content

Commit

Permalink
Fix setuid permission
Browse files Browse the repository at this point in the history
The hacker user cannot chmod these files
  • Loading branch information
ConnorNelson authored and mudongliang committed Jan 11, 2024
1 parent 6761701 commit 16d9b35
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions challenge/docker-entrypoint.d/10_start_vm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,9 @@
if ! find /challenge -name '*.ko' -exec false {} +
then
vm start
else
chmod -s "$(which vm)"
fi

if ! find /challenge -name '*.exe' -exec false {} +
then
windows start
else
chmod -s "$(which windows)"
fi

0 comments on commit 16d9b35

Please sign in to comment.