Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 May 2015 10:07:40 -0400
From:      Mike Tancsa <mike@sentex.net>
To:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   devfs.rules in a jail
Message-ID:  <555B43AC.3010807@sentex.net>

Next in thread | Raw E-Mail | Index | Archive | Help
Hi,
	I am trying to expose a single ugen device inside a jail.  In this 
case, a pkcs11 token. However, I cant seem to get the config right.

I started with a simple ezjail default config

export jail_mdtp_sentex_ca_devfs_ruleset="devfsrules_jail"

and in the rules file, I have

# cat /etc/devfs.rules
[devfsrules_jail=5]
add path 'ugen[0-9]\*'  mode 666
add path 'usb/[0-9]\*'  mode 666


and then I restart the jail. However, I dont see it there

total 10
dr-xr-xr-x   9 root  wheel     -      512 May 19 10:06 .
drwxr-xr-x  12 root  wheel     uarch   23 May 15 18:33 ..
dr-xr-xr-x   2 root  wheel     -      512 May 15 14:57 fd
crw-rw-rw-   1 root  wheel     -     0x19 May 19 10:06 null
dr-xr-xr-x   2 root  wheel     -      512 May 19 10:06 pts
crw-rw-rw-   1 root  wheel     -     0x1e May 15 10:57 random
lrwxr-xr-x   1 root  wheel     -        4 May 19 10:06 stderr -> fd/2
lrwxr-xr-x   1 root  wheel     -        4 May 19 10:06 stdin -> fd/0
lrwxr-xr-x   1 root  wheel     -        4 May 19 10:06 stdout -> fd/1
lrwxr-xr-x   1 root  wheel     -        6 May 19 10:06 urandom -> random
crw-rw-rw-   1 root  wheel     -     0x1a May 15 10:57 zero
crw-rw-rw-   1 root  operator  -     0x4d May 15 14:57 zfs

What am I missing ?

	---Mike

-- 
-------------------
Mike Tancsa, tel +1 519 651 3400
Sentex Communications, mike@sentex.net
Providing Internet services since 1994 www.sentex.net
Cambridge, Ontario Canada   http://www.tancsa.com/



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?555B43AC.3010807>