Skip to content

Commit

Permalink
show warning when running host-shell as root
Browse files Browse the repository at this point in the history
  • Loading branch information
taukakao authored Nov 28, 2024
1 parent b450fd2 commit 6af9f6f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions includes.container/usr/bin/host-shell
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/bin/bash

if [ "$EUID" -eq 0 ]; then
echo "can't run host-shell as root"
exit 55
fi

host_command=""

XDG_RUNTIME_DIR="/run/host/${XDG_RUNTIME_DIR}"
Expand Down

0 comments on commit 6af9f6f

Please sign in to comment.