View previous topic :: View next topic |
Author |
Message |
Noth n00b

Joined: 08 Jan 2003 Posts: 74 Location: Finland/Arizona/NewJersey
|
Posted: Fri Apr 18, 2003 4:40 am Post subject: chrooting services |
|
|
I'm trying to chroot all my services (apache, mysql, squid, privoxy, etc..).
But none of them can seem to find their respective user/group. I have made copies in their dir. of group, passwd nsswitch.conf, and a few others which they need and may not (out of desperation). I am using the 2.4.20-gentoo-r2 kernel with all the Grsec chroot options.
ps. If any one knows how to use Squid 2.5 's chroot option it would be most welcomed if explained, the website is rather lacking on that topic. _________________ !!!teG I sdrawkcaB eroM ehT oG I sdrawroF eroM ehT |
|
Back to top |
|
 |
ixion l33t


Joined: 16 Dec 2002 Posts: 708
|
Posted: Fri Apr 18, 2003 7:13 pm Post subject: |
|
|
I'm sorry I don't have an answer for you, but I've got the same problem, myself.. I'm trying to find a way around it, and will post it here... please reply if you find the answer first, thanks..  _________________ only the paranoid survive |
|
Back to top |
|
 |
Black Apprentice


Joined: 10 Dec 2002 Posts: 158 Location: Québec, Canada
|
Posted: Fri Apr 18, 2003 11:20 pm Post subject: |
|
|
Would this help? |
|
Back to top |
|
 |
Noth n00b

Joined: 08 Jan 2003 Posts: 74 Location: Finland/Arizona/NewJersey
|
Posted: Tue Apr 22, 2003 6:35 pm Post subject: |
|
|
AHA! I got a response back from the grsec board. You need to copy over all the /lib/libnss_* files over into your chroot. _________________ !!!teG I sdrawkcaB eroM ehT oG I sdrawroF eroM ehT |
|
Back to top |
|
 |
Noth n00b

Joined: 08 Jan 2003 Posts: 74 Location: Finland/Arizona/NewJersey
|
Posted: Wed Apr 30, 2003 12:23 pm Post subject: |
|
|
Ummm, It seems none of the chrooted programs can access the network.
I assume It's due to Grsec 's disallowence for mknod in chroot. I don't know what device name to create, or options to pass though, in order to create my own in the chroot.  _________________ !!!teG I sdrawkcaB eroM ehT oG I sdrawroF eroM ehT |
|
Back to top |
|
 |
ixion l33t


Joined: 16 Dec 2002 Posts: 708
|
Posted: Wed Apr 30, 2003 12:38 pm Post subject: |
|
|
try mknod -m 666 dev/null c 1 3 from the chroot dir. That's always worked for me. _________________ only the paranoid survive |
|
Back to top |
|
 |
Noth n00b

Joined: 08 Jan 2003 Posts: 74 Location: Finland/Arizona/NewJersey
|
Posted: Wed Apr 30, 2003 10:08 pm Post subject: |
|
|
ixion wrote: | try mknod -m 666 dev/null c 1 3 from the chroot dir. That's always worked for me. |
Thanks that worked! .... Just I don't know why. I was under the impression that /dev/null obsorbed all input and returns only an eof. What does this have to do with the network? _________________ !!!teG I sdrawkcaB eroM ehT oG I sdrawroF eroM ehT |
|
Back to top |
|
 |
puggy Bodhisattva


Joined: 28 Feb 2003 Posts: 1992 Location: Oxford, UK
|
Posted: Thu May 01, 2003 2:11 am Post subject: |
|
|
OTT but "obsorbed"?
Puggy _________________ Where there's open source , there's a way. |
|
Back to top |
|
 |
|