xref: /freebsd/sbin/devfs/devfs.conf (revision d0b2dbfa)
139cec25bSBrad Davis#  Copyright (c) 2003 The FreeBSD Project
239cec25bSBrad Davis#  All rights reserved.
339cec25bSBrad Davis#
439cec25bSBrad Davis#  Redistribution and use in source and binary forms, with or without
539cec25bSBrad Davis#  modification, are permitted provided that the following conditions
639cec25bSBrad Davis#  are met:
739cec25bSBrad Davis#  1. Redistributions of source code must retain the above copyright
839cec25bSBrad Davis#     notice, this list of conditions and the following disclaimer.
939cec25bSBrad Davis#  2. Redistributions in binary form must reproduce the above copyright
1039cec25bSBrad Davis#     notice, this list of conditions and the following disclaimer in the
1139cec25bSBrad Davis#     documentation and/or other materials provided with the distribution.
1239cec25bSBrad Davis#
1339cec25bSBrad Davis#  THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1439cec25bSBrad Davis#  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1539cec25bSBrad Davis#  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1639cec25bSBrad Davis#  ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
1739cec25bSBrad Davis#  FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1839cec25bSBrad Davis#  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
1939cec25bSBrad Davis#  OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2039cec25bSBrad Davis#  HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2139cec25bSBrad Davis#  LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2239cec25bSBrad Davis#  OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2339cec25bSBrad Davis#  SUCH DAMAGE.
2439cec25bSBrad Davis#
2539cec25bSBrad Davis
2639cec25bSBrad Davis# These are examples of how to configure devices using /etc/rc.d/devfs.
2739cec25bSBrad Davis# The first parameter is always the action to take, the second is always the
2839cec25bSBrad Davis# existing device created by devfs, and the last is what you want to change.
2939cec25bSBrad Davis# The name of the action is only significant to the first unique character.
3039cec25bSBrad Davis#
3139cec25bSBrad Davis# Examples:
3239cec25bSBrad Davis
3339cec25bSBrad Davis# Commonly used by many ports
3439cec25bSBrad Davis#link	cd0	cdrom
3539cec25bSBrad Davis#link	cd0	dvd
3639cec25bSBrad Davis
3739cec25bSBrad Davis# Allow a user in the wheel group to query the smb0 device
3839cec25bSBrad Davis#perm	smb0	0660
3939cec25bSBrad Davis
4039cec25bSBrad Davis# Allow members of group operator to cat things to the speaker
4139cec25bSBrad Davis#own	speaker	root:operator
4239cec25bSBrad Davis#perm	speaker	0660
43