mirror of
https://github.com/ebrandi/FDD-book.git
synced 2026-12-06 00:23:30 +00:00
Organize companion code and materials by book part: part-01/ Foundations part-02/ Kernel & driver fundamentals part-03/ Character & block devices part-04/ Networking & storage part-05/ Buses & advanced topics part-06/ Debugging & performance part-07/ Real-world drivers appendices/ Supplementary material README.md Overview and build instructions
25 lines
883 B
Text
25 lines
883 B
Text
# Example /etc/jail.conf fragment for the Chapter 8 Lab 8.7 jail.
|
|
#
|
|
# Creates a small jail that references ruleset 100 from
|
|
# /etc/devfs.rules (see devfs.rules.example). Used to verify that
|
|
# /dev/myfirst/0 is visible inside the jail when the ruleset unhides
|
|
# it and invisible when it does not.
|
|
#
|
|
# Before using this fragment:
|
|
# 1. Create /jails/myfirstjail and populate it with a base install.
|
|
# One quick way is "bsdinstall jail /jails/myfirstjail".
|
|
# 2. Install the ruleset from devfs.rules.example into
|
|
# /etc/devfs.rules and run "service devfs restart".
|
|
# 3. Start the jail with "service jail start myfirstjail".
|
|
|
|
myfirstjail {
|
|
path = "/jails/myfirstjail";
|
|
host.hostname = "myfirstjail.example.com";
|
|
|
|
mount.devfs;
|
|
devfs_ruleset = 100;
|
|
|
|
exec.start = "/bin/sh";
|
|
exec.stop = "/bin/sh -c 'exit'";
|
|
persist;
|
|
}
|