summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Steves <stevesk@pobox.com>2002-05-13 03:57:04 +0000
committerKevin Steves <stevesk@pobox.com>2002-05-13 03:57:04 +0000
commit0228155f06232da7bff622b761dd0c70592fc561 (patch)
treebb3eef29f503789c1d8dded69d9bb82dde9c20e4
parentc81e12976e57b8d85d1ba8ced991f372aeb6a050 (diff)
- (stevesk) add initial README.privsep
-rw-r--r--ChangeLog3
-rw-r--r--README.privsep53
2 files changed, 55 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 6382bc870..4a9e013bd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,5 @@
120020513 120020513
2 - (stevesk) add initial README.privsep
2 - (stevesk) [configure.ac] nicer message: --with-privsep-user=user 3 - (stevesk) [configure.ac] nicer message: --with-privsep-user=user
3 - (djm) Add --with-superuser-path=xxx configure option to specify what $PATH 4 - (djm) Add --with-superuser-path=xxx configure option to specify what $PATH
4 the superuser receives. 5 the superuser receives.
@@ -576,4 +577,4 @@
576 - (stevesk) entropy.c: typo in debug message 577 - (stevesk) entropy.c: typo in debug message
577 - (djm) ssh-keygen -i needs seeded RNG; report from markus@ 578 - (djm) ssh-keygen -i needs seeded RNG; report from markus@
578 579
579$Id: ChangeLog,v 1.2111 2002/05/13 03:51:40 stevesk Exp $ 580$Id: ChangeLog,v 1.2112 2002/05/13 03:57:04 stevesk Exp $
diff --git a/README.privsep b/README.privsep
new file mode 100644
index 000000000..4f15cf433
--- /dev/null
+++ b/README.privsep
@@ -0,0 +1,53 @@
1Privilege separation, or privsep, is an experimental feature in
2OpenSSH in which operations that require root privilege are performed
3by a separate privileged monitor process. Its purpose is to prevent
4privilege escalation by containing corruption to an unprivileged
5process. More information is available at:
6 http://www.citi.umich.edu/u/provos/ssh/privsep.html
7
8Privilege separation is not enabled by default, and may be enabled by
9specifying "UsePrivilegeSeparation yes" in sshd_config; see the
10UsePrivilegeSeparation option in sshd(8).
11
12When privsep is enabled, the pre-authentication sshd process will
13chroot(2) to "/var/empty" and change its privileges to the "sshd" user
14and its primary group. You should do something like the following to
15prepare the privsep preauth environment:
16
17 # mkdir /var/empty
18 # chown root:sys /var/empty
19 # chmod 755 /var/empty
20 # groupadd sshd
21 # useradd -g sshd sshd
22
23/var/empty should not contain any files.
24
25configure supports the following options to change the default
26privsep user and chroot directory:
27
28 --with-privsep-path=xxx Path for privilege seperation chroot
29 --with-privsep-user=user Specify non-privileged user for privilege separation
30
31Privsep requires operating system support for file descriptor passing
32and mmap(MAP_ANON).
33
34PAM currently only works with privsep on Linux. It does not function
35on Solaris or HP-UX. PAMAuthenticationViaKbdInt does not function with
36privsep.
37
38Note that for a normal interactive login with a shell, enabling privsep
39will require 1 additional process per login session.
40
41Given the following process listing (from HP-UX):
42
43 UID PID PPID C STIME TTY TIME COMMAND
44 root 1005 1 0 10:45:17 ? 0:08 /opt/openssh/sbin/sshd -u0
45 root 6917 1005 0 15:19:16 ? 0:00 sshd: stevesk [priv]
46 stevesk 6919 6917 0 15:19:17 ? 0:03 sshd: stevesk@2
47 stevesk 6921 6919 0 15:19:17 pts/2 0:00 -bash
48
49process 1005 is the sshd process listening for new connections.
50process 6917 is the privileged monitor process, 6919 is the user owned
51sshd process and 6921 is the shell process.
52
53$Id: README.privsep,v 1.1 2002/05/13 03:57:04 stevesk Exp $