devfs.rules in a jail

Ricky G ricky1252 at hotmail.com
Tue May 19 17:02:18 UTC 2015



> Date: Tue, 19 May 2015 10:07:40 -0400
> From: mike at sentex.net
> To: freebsd-questions at freebsd.org
> Subject: devfs.rules in a jail
> 
> 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


export jail_mdtp_sentex_ca_devfs_ruleset="5"
I don't know why its possible to name the rules but only the rule number matters when setting the jails ruleset. 		 	   		  


More information about the freebsd-questions mailing list