Hello Stefan, On Fri 14/08/2015 12:19, Stefan Sperling wrote: > This is not a static binary. So to use it in chroot you have to copy > shared libraries it needs into chroot as well. Did you already do that? > > $ ldd /usr/local/libexec/git/git-http-backend > /usr/local/libexec/git/git-http-backend: > Start End Type Open Ref GrpRef Name > 00000c6778400000 00000c67788e9000 exe 1 0 0 > /usr/local/libexec/git/git-http-backend > 00000c6a29525000 00000c6a2993a000 rlib 0 1 0 > /usr/lib/libz.so.5.0 > 00000c6a59762000 00000c6a59c60000 rlib 0 2 0 > /usr/local/lib/libiconv.so.6.0 > 00000c69cd452000 00000c69cd85c000 rlib 0 1 0 > /usr/local/lib/libintl.so.6.0 > 00000c69aeac4000 00000c69af095000 rlib 0 1 0 > /usr/lib/libcrypto.so.34.0 > 00000c6a60818000 00000c6a60c2a000 rlib 0 2 0 > /usr/lib/libpthread.so.19.0 > 00000c69c28b9000 00000c69c2d93000 rlib 0 1 0 > /usr/lib/libc.so.80.1 > 00000c6a1ad00000 00000c6a1ad00000 rtld 0 1 0 > /usr/libexec/ld.so
Now they are copied; I think it should be ok: - before: # chroot -g daemon -u www /var/www /git/git-http-backend Abort trap - now: # chroot -g daemon -u www /var/www /git/git-http-backend Status: 500 Internal Server Error Expires: Fri, 01 Jan 1980 00:00:00 GMT Pragma: no-cache Cache-Control: no-cache, max-age=0, must-revalidate fatal: No REQUEST_METHOD from server But still unable to clone the repo: ┌──[just22@poseidon]-[0]-[✓]-[tmp] └─────› git clone https://atlantide.t28.net/git/dotfiles.git Cloning into 'dotfiles'... fatal: repository 'https://atlantide.t28.net/git/dotfiles.git/' not found My point related to the env vars to be passed to the CGI script is still valid, I guess... Many thanks for your help -- Alessandro DE LAURENZIS [mailto:[email protected]] LinkedIn: http://it.linkedin.com/in/delaurenzis

