Print this page
4212 /etc/logindevperm contains two identical lines
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/login/logindevperm.sh
+++ new/usr/src/cmd/login/logindevperm.sh
1 1 #! /usr/bin/sh
2 2 #
3 3 # CDDL HEADER START
4 4 #
5 5 # The contents of this file are subject to the terms of the
6 6 # Common Development and Distribution License (the "License").
7 7 # You may not use this file except in compliance with the License.
8 8 #
9 9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 10 # or http://www.opensolaris.org/os/licensing.
11 11 # See the License for the specific language governing permissions
12 12 # and limitations under the License.
13 13 #
14 14 # When distributing Covered Code, include this CDDL HEADER in each
15 15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 16 # If applicable, add the following below this CDDL HEADER, with the
17 17 # fields enclosed by brackets "[]" replaced with your own identifying
18 18 # information: Portions Copyright [yyyy] [name of copyright owner]
19 19 #
20 20 # CDDL HEADER END
21 21 #
22 22 #
23 23 # Copyright (c) 1993, 2010, Oracle and/or its affiliates. All rights reserved.
24 24 #
25 25 #
26 26 # This is the script that generates the logindevperm file. It is
27 27 # architecture-aware, and dumps different stuff for x86 and sparc.
28 28 # There is a lot of common entries, which are dumped first.
29 29 #
30 30 # the SID of this script, and the SID of the dumped script are
31 31 # always the same.
32 32 #
33 33
34 34 cat <<EOM
35 35 #
36 36 # Copyright (c) 1993, 2010, Oracle and/or its affiliates. All rights reserved.
37 37 #
38 38 # /etc/logindevperm - login-based device permissions
39 39 #
40 40 # If the user is logging in on a device specified in the "console" field
41 41 # of any entry in this file, the owner/group of the devices listed in the
42 42 # "devices" field will be set to that of the user. Similarly, the mode
43 43 # will be set to the mode specified in the "mode" field.
44 44 #
45 45 # If the "console" is "/dev/vt/console_user" which is a symlink to the current
46 46 # active virtual console (/dev/console, or /dev/vt/#), then the first
47 47 # user to log into any virtual console will get ownership of all the
48 48 # devices until they log out.
49 49 #
50 50 # "devices" is a colon-separated list of device names. A device name
51 51 # ending in "/*", such as "/dev/fbs/*", specifies all entries (except "."
↓ open down ↓ |
51 lines elided |
↑ open up ↑ |
52 52 # and "..") in a directory. A '#' begins a comment and may appear
53 53 # anywhere in an entry.
54 54 # In addition, regular expressions may be used. Refer to logindevperm(4)
55 55 # man page.
56 56 # Note that any changes in this file should be made when logged in as
57 57 # root as devfs provides persistence on minor node attributes.
58 58 #
59 59 # console mode devices
60 60 #
61 61 /dev/vt/console_user 0600 /dev/mouse:/dev/kbd
62 -/dev/vt/console_user 0600 /dev/mouse:/dev/kbd
63 62 /dev/vt/console_user 0600 /dev/sound/* # audio devices
64 63 /dev/vt/console_user 0600 /dev/fbs/* # frame buffers
65 64 /dev/vt/console_user 0600 /dev/dri/* # dri devices
66 65 /dev/vt/console_user 0400 /dev/removable-media/dsk/* # removable media
67 66 /dev/vt/console_user 0400 /dev/removable-media/rdsk/* # removable media
68 67 /dev/vt/console_user 0400 /dev/hotpluggable/dsk/* # hotpluggable storage
69 68 /dev/vt/console_user 0400 /dev/hotpluggable/rdsk/* # hotpluggable storage
70 69 /dev/vt/console_user 0600 /dev/video[0-9]+ # video devices
71 70 /dev/vt/console_user 0600 /dev/usb/hid[0-9]+ # hid devices should have the same permission with conskbd and consms
72 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
73 72 EOM
74 73
75 74 case "$MACH" in
76 75 "i386" )
77 76 #
78 77 # These are the x86 specific entries
79 78 # It depends on the build machine being an x86
80 79 #
81 80 cat <<-EOM
82 81 EOM
83 82 ;;
84 83 "sparc" )
85 84 #
86 85 # These are the sparc specific entries
87 86 # It depends on the build machine being a sparc
88 87 #
89 88 cat <<-EOM
90 89 EOM
91 90 ;;
92 91 "ppc" )
93 92 #
94 93 # These are the ppc specific entries
95 94 # It depends on the build machine being a ppc
96 95 #
97 96 cat <<-EOM
98 97 EOM
99 98 ;;
100 99 * )
101 100 echo "Unknown Architecture"
102 101 exit 1
103 102 ;;
104 103 esac
↓ open down ↓ |
32 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX