View Issue Details

IDProjectCategoryView StatusLast Update
0001112unrealinstallingpublic2003-11-20 19:43
Reportericeblade Assigned Tosyzop  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version3.2-beta17 
Summary0001112: cannot start ircd with chrootdir enabled
Descriptionwhen starting the ircd it will say it can't change to /where/you/installed/unreal


strace showed it
chdir'd /where/you/installed/unreal
chrooted to /where/you/installed/unreal
and then chdired /where/you/installed/unreal again

reporting the error :
ERROR: Unable to change to directory /where/you/installed/unreal

sorry no logs, lost them when i fixed this (see below)
Steps To Reproducedefine CHROOTDIR, compile and run ircd
Additional Informationfound out what causes the problem too:
in ircd.c line 1517
it sais :
#ifndef CHROOT

should be :
#ifndef CHROOTDIR

as CHROOTDIR is what is defined in the config.h (and used on other placed in the source)
3rd party modules

Activities

syzop

2003-08-11 16:46

administrator   ~0003453

Hm yeah..
In the meantime you could use "./" as ircd path and "src/ircd" as ircd binary path (in ./Config), that seems to work.. also don't forget to enable IRC_UID / IRC_GID since root in a chroot is not a good idea. I assume here that you will start the ircd as root, and won't set it suid or something, coz then the ./ path would be dangerous of course.

syzop

2003-08-13 04:18

administrator   ~0003468

oh I didn't even read what you said :P

syzop

2003-09-05 21:15

administrator   ~0003592

Fixed in .1905.

Issue History

Date Modified Username Field Change
2003-07-11 10:11 iceblade New Issue
2003-08-11 16:46 syzop Note Added: 0003453
2003-08-13 04:18 syzop Status new => acknowledged
2003-08-13 04:18 syzop Note Added: 0003468
2003-09-05 21:15 syzop Status acknowledged => resolved
2003-09-05 21:15 syzop Resolution open => fixed
2003-09-05 21:15 syzop Assigned To => syzop
2003-09-05 21:15 syzop Note Added: 0003592
2003-11-20 19:43 syzop Status resolved => closed