Chroot defines?

These are old archives. They are kept for historic purposes only.
Post Reply
thalin

Chroot defines?

Post 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.
Syzop
UnrealIRCd head coder
Posts: 2179
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Re: Chroot defines?

Post 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'.
Post Reply