42 # "devices" field will be set to that of the user. Similarly, the mode
43 # will be set to the mode specified in the "mode" field.
44 #
45 # If the "console" is "/dev/vt/console_user" which is a symlink to the current
46 # active virtual console (/dev/console, or /dev/vt/#), then the first
47 # user to log into any virtual console will get ownership of all the
48 # devices until they log out.
49 #
50 # "devices" is a colon-separated list of device names. A device name
51 # ending in "/*", such as "/dev/fbs/*", specifies all entries (except "."
52 # and "..") in a directory. A '#' begins a comment and may appear
53 # anywhere in an entry.
54 # In addition, regular expressions may be used. Refer to logindevperm(4)
55 # man page.
56 # Note that any changes in this file should be made when logged in as
57 # root as devfs provides persistence on minor node attributes.
58 #
59 # console mode devices
60 #
61 /dev/vt/console_user 0600 /dev/mouse:/dev/kbd
62 /dev/vt/console_user 0600 /dev/mouse:/dev/kbd
63 /dev/vt/console_user 0600 /dev/sound/* # audio devices
64 /dev/vt/console_user 0600 /dev/fbs/* # frame buffers
65 /dev/vt/console_user 0600 /dev/dri/* # dri devices
66 /dev/vt/console_user 0400 /dev/removable-media/dsk/* # removable media
67 /dev/vt/console_user 0400 /dev/removable-media/rdsk/* # removable media
68 /dev/vt/console_user 0400 /dev/hotpluggable/dsk/* # hotpluggable storage
69 /dev/vt/console_user 0400 /dev/hotpluggable/rdsk/* # hotpluggable storage
70 /dev/vt/console_user 0600 /dev/video[0-9]+ # video devices
71 /dev/vt/console_user 0600 /dev/usb/hid[0-9]+ # hid devices should have the same permission with conskbd and consms
72 /dev/vt/console_user 0600 /dev/usb/[0-9a-f]+[.][0-9a-f]+/[0-9]+/* driver=scsa2usb,usb_mid,usbprn,ugen #libusb/ugen devices
73 EOM
74
75 case "$MACH" in
76 "i386" )
77 #
78 # These are the x86 specific entries
79 # It depends on the build machine being an x86
80 #
81 cat <<-EOM
82 EOM
|
42 # "devices" field will be set to that of the user. Similarly, the mode
43 # will be set to the mode specified in the "mode" field.
44 #
45 # If the "console" is "/dev/vt/console_user" which is a symlink to the current
46 # active virtual console (/dev/console, or /dev/vt/#), then the first
47 # user to log into any virtual console will get ownership of all the
48 # devices until they log out.
49 #
50 # "devices" is a colon-separated list of device names. A device name
51 # ending in "/*", such as "/dev/fbs/*", specifies all entries (except "."
52 # and "..") in a directory. A '#' begins a comment and may appear
53 # anywhere in an entry.
54 # In addition, regular expressions may be used. Refer to logindevperm(4)
55 # man page.
56 # Note that any changes in this file should be made when logged in as
57 # root as devfs provides persistence on minor node attributes.
58 #
59 # console mode devices
60 #
61 /dev/vt/console_user 0600 /dev/mouse:/dev/kbd
62 /dev/vt/console_user 0600 /dev/sound/* # audio devices
63 /dev/vt/console_user 0600 /dev/fbs/* # frame buffers
64 /dev/vt/console_user 0600 /dev/dri/* # dri devices
65 /dev/vt/console_user 0400 /dev/removable-media/dsk/* # removable media
66 /dev/vt/console_user 0400 /dev/removable-media/rdsk/* # removable media
67 /dev/vt/console_user 0400 /dev/hotpluggable/dsk/* # hotpluggable storage
68 /dev/vt/console_user 0400 /dev/hotpluggable/rdsk/* # hotpluggable storage
69 /dev/vt/console_user 0600 /dev/video[0-9]+ # video devices
70 /dev/vt/console_user 0600 /dev/usb/hid[0-9]+ # hid devices should have the same permission with conskbd and consms
71 /dev/vt/console_user 0600 /dev/usb/[0-9a-f]+[.][0-9a-f]+/[0-9]+/* driver=scsa2usb,usb_mid,usbprn,ugen #libusb/ugen devices
72 EOM
73
74 case "$MACH" in
75 "i386" )
76 #
77 # These are the x86 specific entries
78 # It depends on the build machine being an x86
79 #
80 cat <<-EOM
81 EOM
|