devfs.rules revision 172579
1113836Simp# 2113836Simp# The following are some default rules for devfs(5) mounts. 3113836Simp# The format is very simple. Empty lines and lines beginning 4113836Simp# with a hash '#' are ignored. If the hash mark occurs anywhere 5113836Simp# other than the beginning of a line, it and any subsequent 6113836Simp# characters will be ignored. A line in between brackets '[]' 7113836Simp# denotes the beginning of a ruleset. In the brackets should 8113836Simp# be a name for the rule and its ruleset number. Any other lines 9113836Simp# will be considered to be the 'action' part of a rule 10113836Simp# passed to the devfs(8) command. These will be passed 11113836Simp# "as-is" to the devfs(8) command with the exception that 12113836Simp# any references to other rulesets will be expanded first. These 13113836Simp# references must include a dollar sign '$' in front of the 14113836Simp# name to be expanded properly. 15113836Simp# 16113836Simp# $FreeBSD: head/etc/defaults/devfs.rules 172579 2007-10-12 14:55:41Z csjp $ 17113836Simp# 18113836Simp 19113836Simp# Very basic and secure ruleset: Hide everything. 20113836Simp# Used as a basis for other rules. 21113836Simp# 22113836Simp[devfsrules_hide_all=1] 23113836Simpadd hide 24113836Simp 25113836Simp# Basic devices typically necessary. 26113836Simp# Requires: devfsrules_hide_all 27113836Simp# 28113836Simp[devfsrules_unhide_basic=2] 29113836Simpadd path null unhide 30113836Simpadd path zero unhide 31113836Simpadd path crypto unhide 32113836Simpadd path random unhide 33113836Simpadd path urandom unhide 34113836Simp 35113836Simp# Devices typically needed to support logged-in users. 36115418Sru# Requires: devfsrules_hide_all 37113836Simp# 38113836Simp[devfsrules_unhide_login=3] 39113836Simpadd path 'ptyp*' unhide 40113836Simpadd path 'ptyq*' unhide 41113836Simpadd path 'ptyr*' unhide 42113836Simpadd path 'ptys*' unhide 43113836Simpadd path 'ptyP*' unhide 44113836Simpadd path 'ptyQ*' unhide 45113836Simpadd path 'ptyR*' unhide 46113836Simpadd path 'ptyS*' unhide 47113836Simpadd path 'ttyp*' unhide 48166611Sbruefferadd path 'ttyq*' unhide 49113836Simpadd path 'ttyr*' unhide 50113836Simpadd path 'ttys*' unhide 51113836Simpadd path 'ttyP*' unhide 52121414Shmpadd path 'ttyQ*' unhide 53113836Simpadd path 'ttyR*' unhide 54add path 'ttyS*' unhide 55add path 'pts/*' unhide 56add path 'pty/*' unhide 57add path fd unhide 58add path 'fd/*' unhide 59add path stdin unhide 60add path stdout unhide 61add path stderr unhide 62 63# Devices usually found in a jail. 64# 65[devfsrules_jail=4] 66add include $devfsrules_hide_all 67add include $devfsrules_unhide_basic 68add include $devfsrules_unhide_login 69