Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
chrooting services
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Noth
n00b
n00b


Joined: 08 Jan 2003
Posts: 74
Location: Finland/Arizona/NewJersey

PostPosted: Fri Apr 18, 2003 4:40 am    Post subject: chrooting services Reply with quote

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
View user's profile Send private message
ixion
l33t
l33t


Joined: 16 Dec 2002
Posts: 708

PostPosted: Fri Apr 18, 2003 7:13 pm    Post subject: Reply with quote

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.. :wink:
_________________
only the paranoid survive
Back to top
View user's profile Send private message
Black
Apprentice
Apprentice


Joined: 10 Dec 2002
Posts: 158
Location: Québec, Canada

PostPosted: Fri Apr 18, 2003 11:20 pm    Post subject: Reply with quote

Would this help?
Back to top
View user's profile Send private message
Noth
n00b
n00b


Joined: 08 Jan 2003
Posts: 74
Location: Finland/Arizona/NewJersey

PostPosted: Tue Apr 22, 2003 6:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
Noth
n00b
n00b


Joined: 08 Jan 2003
Posts: 74
Location: Finland/Arizona/NewJersey

PostPosted: Wed Apr 30, 2003 12:23 pm    Post subject: Reply with quote

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. :oops:
_________________
!!!teG I sdrawkcaB eroM ehT oG I sdrawroF eroM ehT
Back to top
View user's profile Send private message
ixion
l33t
l33t


Joined: 16 Dec 2002
Posts: 708

PostPosted: Wed Apr 30, 2003 12:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
Noth
n00b
n00b


Joined: 08 Jan 2003
Posts: 74
Location: Finland/Arizona/NewJersey

PostPosted: Wed Apr 30, 2003 10:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
puggy
Bodhisattva
Bodhisattva


Joined: 28 Feb 2003
Posts: 1992
Location: Oxford, UK

PostPosted: Thu May 01, 2003 2:11 am    Post subject: Reply with quote

OTT but "obsorbed"? :-D

Puggy
_________________
Where there's open source , there's a way.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum