Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Apr 2010 14:43:11 +0800
From:      Mars G Miro <spry@anarchy.in.the.ph>
To:        Dan Naumov <dan.naumov@gmail.com>
Cc:        freebsd-jail@freebsd.org, Glen Barber <glen.j.barber@gmail.com>, freebsd-questions@freebsd.org
Subject:   Re: bizarre mount_nullfs issue with jails / ezjail
Message-ID:  <v2rf12f408a1004062343ib9b5a133k9efc4ea9b1a4126c@mail.gmail.com>
In-Reply-To: <t2tcf9b1ee01004062328hb3b221b5oaf90579419c3a8e9@mail.gmail.com>
References:  <k2xcf9b1ee01004061429ub4986488ya54af1a525aa209c@mail.gmail.com> <20100406213711.GA38637@orion.hsd1.pa.comcast.net> <p2wcf9b1ee01004061443j2009774ewe8221d4668cff9ba@mail.gmail.com> <z2of12f408a1004062049h92c68feaub51a48cb52289d31@mail.gmail.com> <t2tcf9b1ee01004062328hb3b221b5oaf90579419c3a8e9@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Apr 7, 2010 at 2:28 PM, Dan Naumov <dan.naumov@gmail.com> wrote:
>>> An additional question: how come "sade" and "sysinstall" which are run
>>> inside the jail can see (and I can only assume they can also operate
>>> on and damage) the real underlying disks of the host?
>>>
>>
>> Disks (as well as others you have in your host's /dev) aren't visible
>> inside jails.
>
> Well, somehow they are on my system.
>
> I guess I should've also clarified that the jail was installed using
> ezjail and not completely manually
>
> From /usr/local/etc/ezjail/semipublic
>
> export jail_semipublic_devfs_enable="YES"
> export jail_semipublic_devfs_ruleset="devfsrules_jail"
>

Well I'm not entirely familiar w/ ezjail but I use jails all the time,
and I can tell you that /dev in jails is very limited, here's a /dev
jail of mine:

mars@spry9:~> ls -al /dev/
total 2
crw-rw-rw-  1 root  wheel    0,  58 Mar 27 03:02 crypto
dr-xr-xr-x  2 root  wheel       512 Mar 27 03:12 fd
dr-xr-xr-x  2 root  wheel       512 Mar 30 20:00 iso9660
lrwxr-xr-x  1 root  wheel        14 Mar 27 03:12 log -> ../var/run/log
crw-rw-rw-  1 root  wheel    0,  33 Apr  7 14:33 null
crw-rw-rw-  1 root  wheel    0,   7 Mar 27 03:02 ptmx
dr-xr-xr-x  2 root  wheel       512 Mar 27 03:22 pts
crw-rw-rw-  1 root  wheel    0,  10 Mar 27 11:12 random
lrwxr-xr-x  1 root  wheel         4 Mar 27 03:12 stderr -> fd/2
lrwxr-xr-x  1 root  wheel         4 Mar 27 03:12 stdin -> fd/0
lrwxr-xr-x  1 root  wheel         4 Mar 27 03:12 stdout -> fd/1
lrwxr-xr-x  1 root  wheel         6 Mar 27 03:12 urandom -> random
crw-rw-rw-  1 root  wheel    0,  34 Mar 27 03:02 zero
mars@spry9:~>

So I guess it's a configuration issue w/ your jails.

> - Sincerely,
> Dan Naumov
>



-- 
cheers
mars
-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?v2rf12f408a1004062343ib9b5a133k9efc4ea9b1a4126c>