I'm missing something here ... I've looked in /etc/defaults/devfs.conf, and found that ruleset 4 is what I want for a jail ... so, I issue: devfs -m /vm/.t19/dev ruleset 4 but its not doing anything: titan# devfs -m /vm/.t19/dev ruleset 4 titan# devfs -m /vm/.t19/dev rule show titan# ls /vm/.t19/dev acd0 da0s1e net2 stderr ttyv6 acpi da0s1f net3 stdin ttyv7 ata da0s1g network stdout ttyv8 atkbd0 devctl nfs4 sysmouse ttyv9 bpsm0 devstat nfslock ttyp0 ttyva ciss0 fd null ttyp1 ttyvb console fido pass0 ttyp2 ttyvc consolectl geom.ctl pci ttyp3 ttyvd ctty io psm0 ttyp4 ttyve da0 kbd0 ptyp0 ttyv0 ttyvf da0s1 klog ptyp1 ttyv1 urandom da0s1a kmem ptyp2 ttyv2 xpt0 da0s1b mem ptyp3 ttyv3 zero da0s1c net ptyp4 ttyv4 da0s1d net1 random ttyv5 titan# So, how do I make use of the rules that are defined in /etc/defaults/devfs.rules? :( Thanks ... ---- Marc G. Fournier Hub.Org Networking Services (http://www.hub.org) Email: scrappy@hub.org Yahoo!: yscrappy ICQ: 7615664
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, Mar 27, 2006 at 11:18:21PM -0400, Marc G. Fournier wrote:> > I'm missing something here ... I've looked in /etc/defaults/devfs.conf, and > found that ruleset 4 is what I want for a jail ... so, I issue: > > devfs -m /vm/.t19/dev ruleset 4 > > but its not doing anything:If I understand, you want the devfs ruleset for jails, the more or less pre-built one. This is what worked for me. First, I name the jail with an arbitrary name in /etc/rc.conf, for example jail_list="myjail" Then, I have a line jail_myjail_devfs_ruleset="devfs_rules_jail" (Or you can use ez_jail from ports which does it for you.) So, I think what you want, at least when you run it from rc.conf would be devfs_rules_jail - -- Scott Robbins PGP keyID EB3467D6 ( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 ) gpg --keyserver pgp.mit.edu --recv-keys EB3467D6 Willow: Why couldn't he be possessed by a puppy, or some ducks? -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (FreeBSD) iD8DBQFEKLDl+lTVdes0Z9YRAlYOAJ9fngxC0mCD0f1e9YcNc8t/7Vnk9QCZARAj BBpQgT6SBvW7LUsmXq5ypi8=Z39v -----END PGP SIGNATURE-----
On 2006.03.27 23:18:21 -0400, Marc G. Fournier wrote:> > I'm missing something here ... I've looked in /etc/defaults/devfs.conf, > and found that ruleset 4 is what I want for a jail ... so, I issue: > > devfs -m /vm/.t19/dev ruleset 4I can't remember the details right now (other than it's easy to do it wrong), but basically you need to both filter the existing device entries and set a ruleset for new entries. I would suggest simply looking at how the jail rc.d script sets up the devfs and reading the entire devfs manual page a few times, or even better simply use the jail rc.d script to set it up. -- Simon L. Nielsen -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20060328/05f65511/attachment.pgp