diff options
Diffstat (limited to 'src')
| -rwxr-xr-x | src/git-run | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/git-run b/src/git-run index 87f6155..10dd3b7 100755 --- a/src/git-run +++ b/src/git-run @@ -36,6 +36,10 @@ end function verifyRepoJail set -l realPath (realpath $repoDir) + if test "$realPath" != "$repoDir" + emit log DENY jail_escape "realPath!=repoDir -> $realpath!=$repoDir" + return 2 + end if not string match -r -q -- "/srv/repos/.*" "$realPath" emit log DENY jail_escape "realPath=$realPath" return 2 |
