]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - share/doc/papers/sysperf/6.t
MFV r337014:
[FreeBSD/FreeBSD.git] / share / doc / papers / sysperf / 6.t
1 .\" Copyright (c) 1985 The Regents of the University of California.
2 .\" All rights reserved.
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\"    notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\"    notice, this list of conditions and the following disclaimer in the
11 .\"    documentation and/or other materials provided with the distribution.
12 .\" 3. Neither the name of the University nor the names of its contributors
13 .\"    may be used to endorse or promote products derived from this software
14 .\"    without specific prior written permission.
15 .\"
16 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
17 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
20 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 .\" SUCH DAMAGE.
27 .\"
28 .\"     @(#)6.t 5.1 (Berkeley) 4/17/91
29 .\"
30 .ds RH Security Tightening
31 .NH
32 Security Tightening
33 .PP
34 Since we do not wish to encourage rampant system cracking,
35 we describe only briefly the changes made to enhance security.
36 .NH 2
37 Generic Kernel
38 .PP
39 Several loopholes in the process tracing facility have been corrected.
40 Programs being traced may not be executed;
41 executing programs may not be traced.
42 Programs may not provide input to terminals to which they do not
43 have read permission.
44 The handling of process groups has been tightened to eliminate
45 some problems.
46 When a program attempts to change its process group,
47 the system checks to see if the process with the pid of the process 
48 group was started by the same user.
49 If it exists and was started by a different user the process group
50 number change is denied.
51 .NH 2
52 Security Problems in Utilities
53 .PP
54 Setuid utilities no longer use the \fIpopen\fP or \fIsystem\fP library routines.
55 Access to the kernel's data structures through the kmem device
56 is now restricted to programs that are set group id ``kmem''.
57 Thus many programs that used to run with root privileges
58 no longer need to do so.
59 Access to disk devices is now controlled by an ``operator'' group id;
60 this permission allows operators to function without being the super-user.
61 Only users in group wheel can do ``su root''; this restriction
62 allows administrators to define a super-user access list.
63 Numerous holes have been closed in the shell to prevent
64 users from gaining privileges from set user id shell scripts,
65 although use of such scripts is still highly discouraged on systems
66 that are concerned about security.