Re: FreeBSD Jail
From: Steve Shorter (steve@nomad.lets.net)
Date: 12/30/02
- Next message: Elite Bizkit: "one more thing ;)"
- Previous message: Peter Elsner: "Re: Bystander shot by a spam filter."
- In reply to: Elite Bizkit: "FreeBSD Jail"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 30 Dec 2002 10:01:41 -0500 From: Steve Shorter <steve@nomad.lets.net> To: Elite Bizkit <elite_bizkit@hotmail.com>
On Mon, Dec 30, 2002 at 01:23:03PM +0000, Elite Bizkit wrote:
> First of all, how do you login to the jail (and logout)? Another question is
The same way that you login in to any system. Well, there
are restrictions in the jail of course. A common way is to run
sshd in a jail and then ssh in. I ussually run sshd and syslogd
in the jailed environment, this depends on what you need of course.
> if someone manages to get root in the jail what happens if they run "exit",
> will they get to the host system or will it just close the jail and their
> connection? And finally in the BSDpro article the ports system was mounted
"exit". You mean exit a shell? Well, then the shell will
exit and the connection may close and then you will still have sshd
running in the jail or whatever...
> using mount_nfs, surely if you can run this in the jail then you could mount
> other directories such as "/etc" and screw around with files on the host
> system?
You can't run mount in a jail. That doesn't mean that the mounts
outside of the jail are all invisible inside. It depends how you
set up your chroot environment. One interesting "feature" of NFS mounts
is that they can be read/write in the jail but the network they are
mounted on can be otherwise inaccessable to the jail.
>
> Im probably missing something simple here but if anyone could answer any of
> the above I would be very greatful :)
>
Experimenting with jail is fun and probably the best way to
learn this stuff.
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message
- Next message: Elite Bizkit: "one more thing ;)"
- Previous message: Peter Elsner: "Re: Bystander shot by a spam filter."
- In reply to: Elite Bizkit: "FreeBSD Jail"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|