7 ms·
Here is a quick fix to prevent system-wide exploits, salt to taste: $ grep GIT_CEILING_DIRECTORIES ~/.bashrc export GIT_CEILING_DIRECTORIES=$HOME:/var/www
by dotancohen 5y ago
Here is a quick fix to prevent system-wide exploits, salt to taste:
$ grep GIT_CEILING_DIRECTORIES ~/.bashrc
export GIT_CEILING_DIRECTORIES=$HOME:/var/www
But malicious Git repos could still affect your user profile. You can harden that by putting all git repos in a sandbox, e.g.:
export GIT_CEILING_DIRECTORIES=$HOME/sandbox