Page 1 of 1

Chroot defines?

Posted: Thu Mar 02, 2006 11:06 pm
by thalin
Hi, I'm trying to compile UnrealIRCd to support chrooting. I've read the forums and I see that I am supposed to define the following:
CHROOTDIR
IRC_UID
IRC_GID

The config.h file also mentions that I should define DPATH but I'm not sure what all these (other than the UIDs) should be set to - should DPATH and CHROOTDIR be the same? Will the install script install everything automatically to the proper directories? What other configuration will I have to do?

I've looked for documentation about this feature but there just doesn't seem to be any at all. Any help would be greatly appreciated.

Thanks.

Re: Chroot defines?

Posted: Fri Mar 03, 2006 11:34 am
by Syzop
thalin wrote:The config.h file also mentions that I should define DPATH but I'm not sure what all these (other than the UIDs) should be set to - should DPATH and CHROOTDIR be the same?
Seeing you got the uid and gid things, the only other thing you have to do is add the:
#define CHROOTDIR
(takes no parameter)

That's all.. And then recompile of course.

DPATH is already set during ./Config (in another .h file).

The IRCd is simply chrooted to the path you specified during ./Config (2nd question in ./Config) eg '/home/irc/Unreal'.