[Chrootssh-users] Chrootssh on FreeBSD
Brought to you by:
punkball
From: Brusilovsky, E. <Eug...@pr...> - 2003-04-11 14:07:17
|
Guys, =20 Did any of you try to chroot ssh on FreeBSD 4.x system? I applied the patch to openssh 3.6.1 and here is what I've got while compiling: (cd openbsd-compat && make) gcc -o ssh ssh.o readconf.o clientloop.o sshtty.o sshconnect.o sshconnect1.o sshconnect2.o -L. -Lopenbsd-compat/ -lssh -lopenbsd-compat -lutil -lz -lcrypto gcc -g -O2 -Wall -Wpointer-arith -Wno-uninitialized -I. -I. -DSSHDIR=3D\"/usr/local/etc\" = -D_PATH_SSH_PROGRAM=3D\"/usr/local/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=3D\"/usr/local/libexec/ssh-askpass\" -D_PATH_SFTP_SERVER=3D\"/usr/local/libexec/sftp-server\" -D_PATH_SSH_KEY_SIGN=3D\"/usr/local/libexec/ssh-keysign\" -D_PATH_SSH_PIDDIR=3D\"/var/run\" -D_PATH_PRIVSEP_CHROOT_DIR=3D\"/var/empty\" -DSSH_RAND_HELPER=3D\"/usr/local/libexec/ssh-rand-helper\" = -DHAVE_CONFIG_H -c session.c session.c: In function `do_setusercontext': session.c:1214: warning: unused variable `new_root' session.c:1213: warning: unused variable `user_dir' =20 I have to say that I was able to "successfully" make and install sshd. SSH works fine but it never does chroot :(. I checked the source code and it seems that command execution never reach the chroot() call. That is why new_root and user_dir variables claimed to be unused. Any ideas? =20 Eugene Brusilovsky |