Date: Tue, 8 Feb 2005 10:47:17 -0700 From: Chad Leigh -- Shire.Net LLC <chad@shire.net> To: r p <freebsd99@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: jail /dev Message-ID: <7944EB9F-79F9-11D9-B134-000D933E3CEC@shire.net> In-Reply-To: <eae9dad805020807328e7899c@mail.gmail.com> References: <eae9dad805020807328e7899c@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Feb 8, 2005, at 8:32 AM, r p wrote:
> Hi,
>
> I've set up a jail and am getting confused about setting up the
> devices. The name of the jail is "jail" and it's directory is
> "/usr/jail". I am using 5.3-Release. I have tried three methods, one
> that works, two that don't.
>
> At the moment what I'm doing is "mount_devfs devfs /usr/jail/dev" then
> going into the jail and deleting the devices that I (think) I don't
> need/shouldn't have available. This works, but brings up the problem
> that I don't know what devices I should leave in and which I
> shouldn't.
>
> I tried adding the line "jail_jail_devfs_ruleset=4" along with other
> suggested lines relating to jails to /etc/rc.conf, but this resulted
> in an error message at bootup; "WARNING: devfs_set_ruleset: you must
> specify a ruleset number". I am getting the number ("4") from the
> "/etc/defaults/devfs.rules" file.
I have the following in my jail startup script
devfs_domount /local/2/hobbiton/dev devfsrules_jail
devfs_set_ruleset devfsrules_jail /local/2/hobbiton/dev
/sbin/devfs -m /local/2/hobbiton/dev rule -s 4 applyset
I am not sure which one is working but one of them is :-)   I will have 
to debug it some more and simplify this
Chad
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7944EB9F-79F9-11D9-B134-000D933E3CEC>
