jail /dev
r p
freebsd99 at gmail.com
Wed Feb 9 01:33:16 PST 2005
On Tue, 8 Feb 2005 10:47:17 -0700, Chad Leigh -- Shire. Net LLC
<chad at shire.net> wrote:
>
> 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
Thanks for your reply.
I put those lines in my jail startup script, substituting my own path
to the jail, but 'devfs_domount" and 'devfs_set_ruleset' seem to be
missing, and I still get the same error for the 'devfs -m ...'
command;
devfs_domount: not found
devfs_set_ruleset: not found
devfs rule: ioctl DEVFSIO_SAPPLY: Inappropriate ioctl for device
I've searched my system and can't find 'devfs_domount' or 'devfs_set_ruleset'.
Maybe you could attach a file showing what devices are created with
these commands, and i'll just write a line to delete the uneeded
devices in startup script.
This is really frustrating me :)
Richard
> 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.
>
More information about the freebsd-questions
mailing list