FDD-book/examples/part-02/ch08-working-with-device-files/devfs/devfs.rules.example
Edson Brandi 6e6dac94fe Add book companion files under examples/
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
2026-04-25 16:51:00 +00:00

15 lines
602 B
Text

# Example /etc/devfs.rules fragment for the Chapter 8 myfirst driver.
#
# devfs.rules defines named rulesets that a jail can reference in
# jail.conf through devfs_ruleset = N. See devfs(8) and
# devfs.rules(5) for the full format.
#
# The ruleset below makes everything under /dev/myfirst/ visible
# inside a jail, with group-readable/writable access for the
# operator group. It is suitable for a lab jail that needs to run
# probe_myfirst against the driver running on the host.
[myfirst_lab=10]
add path 'myfirst' unhide
add path 'myfirst/*' unhide
add path 'myfirst/*' mode 0660 group operator