xref: /src/sbin/devfs/devfs.conf (revision d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf)
105ca3441SDoug Barton#  Copyright (c) 2003 The FreeBSD Project
205ca3441SDoug Barton#  All rights reserved.
305ca3441SDoug Barton#
405ca3441SDoug Barton#  Redistribution and use in source and binary forms, with or without
505ca3441SDoug Barton#  modification, are permitted provided that the following conditions
605ca3441SDoug Barton#  are met:
705ca3441SDoug Barton#  1. Redistributions of source code must retain the above copyright
805ca3441SDoug Barton#     notice, this list of conditions and the following disclaimer.
905ca3441SDoug Barton#  2. Redistributions in binary form must reproduce the above copyright
1005ca3441SDoug Barton#     notice, this list of conditions and the following disclaimer in the
1105ca3441SDoug Barton#     documentation and/or other materials provided with the distribution.
1205ca3441SDoug Barton#
1305ca3441SDoug Barton#  THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1405ca3441SDoug Barton#  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1505ca3441SDoug Barton#  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1605ca3441SDoug Barton#  ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
1705ca3441SDoug Barton#  FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1805ca3441SDoug Barton#  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
1905ca3441SDoug Barton#  OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2005ca3441SDoug Barton#  HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2105ca3441SDoug Barton#  LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2205ca3441SDoug Barton#  OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2305ca3441SDoug Barton#  SUCH DAMAGE.
2405ca3441SDoug Barton#
2505ca3441SDoug Barton
2605ca3441SDoug Barton# These are examples of how to configure devices using /etc/rc.d/devfs.
2705ca3441SDoug Barton# The first parameter is always the action to take, the second is always the
2805ca3441SDoug Barton# existing device created by devfs, and the last is what you want to change.
2905ca3441SDoug Barton# The name of the action is only significant to the first unique character.
3005ca3441SDoug Barton#
3105ca3441SDoug Barton# Examples:
3205ca3441SDoug Barton
3305ca3441SDoug Barton# Commonly used by many ports
34*58fdb935SGavin Atkinson#link	cd0	cdrom
35*58fdb935SGavin Atkinson#link	cd0	dvd
3605ca3441SDoug Barton
3705ca3441SDoug Barton# Allow a user in the wheel group to query the smb0 device
3805ca3441SDoug Barton#perm	smb0	0660
3905ca3441SDoug Barton
4005ca3441SDoug Barton# Allow members of group operator to cat things to the speaker
4105ca3441SDoug Barton#own	speaker	root:operator
4205ca3441SDoug Barton#perm	speaker	0660
43