How can I prevent mdconfig memory disks which are attached in the hostfrom appearing in jails? That means, I do not want to see md0 md1 md2 being visible and accessible from jails.
(It's got to be a setting in the devfs.rules or jail.conf file, but I just figure it out.)
You need to choose a set of devfs rules via devfs_ruleset in your jail.conf. If you use a devfs rule set like this, you won't have any md nodes:
Code:
# Devices usually found in a jail.
#
[devfsrules_jail=4]
add include $devfsrules_hide_all
add include $devfsrules_unhide_basic
add include $devfsrules_unhide_login
add path zfs unhide
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.