I'm attempting to run ircd (ircu2.10.11beta27) in a chroot jail. I compiled
statically with no errors. However, the server only works if the ircd binary
is in /bin (outside the jail) rather than the new root bin. Which suggests
that I may be missing some files in the jail, but there are no errors when
the server is started in the jail. The debug output I get is:

Resolver: init_resolver
Resolver: start_resolver
Restarting server . . .
Segmentation Fault

My jail filesystem is:

/chrootjail/bin
/chrootjail/etc
/chrootjail/dev
/chrootjail/ircd

I've included dev/null, etc/group, etc/passwd, etc/hosts, etc/localtime,
etc/nsswitch.conf, and etc/resolv.conf in the jail.

I compiled with the following paths:

--prefix=/chrootjail
--bindir=/chrootjail/bin
--libexecdir=/chrootjail/bin
--with-chroot=/chrootjail
--with-dpath=/chrootjail/ircd
--with-cpath=/chrootjail/ircd
--with-lpath=/chrootjail/ircd

The server is run as a non-root user with proper permissions to all jail
files and directories. Chkconf finds no errors with the ircd.conf file,
which works when the ircd server binary is run outside the jail as
previously stated.

Would appreciate any help.

Paul


Reply via email to