diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2002-06-23 00:33:47 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2002-06-23 00:33:47 +0000 |
commit | 2dfacb3d401c0b15140e23710eead071bd60f82e (patch) | |
tree | c3aa7e76d6f59e30217d5cf64aa410aa5c4a1acd /sshd.c | |
parent | 624e3f2065690308adfeb8eaa88b3ee943f9eaad (diff) |
- stevesk@cvs.openbsd.org 2002/06/22 16:40:19
[sshd.c]
check /var/empty owner mode; ok provos@
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -42,7 +42,7 @@ | |||
42 | */ | 42 | */ |
43 | 43 | ||
44 | #include "includes.h" | 44 | #include "includes.h" |
45 | RCSID("$OpenBSD: sshd.c,v 1.246 2002/06/20 23:05:56 markus Exp $"); | 45 | RCSID("$OpenBSD: sshd.c,v 1.247 2002/06/22 16:40:19 stevesk Exp $"); |
46 | 46 | ||
47 | #include <openssl/dh.h> | 47 | #include <openssl/dh.h> |
48 | #include <openssl/bn.h> | 48 | #include <openssl/bn.h> |
@@ -1012,6 +1012,9 @@ main(int ac, char **av) | |||
1012 | (S_ISDIR(st.st_mode) == 0)) | 1012 | (S_ISDIR(st.st_mode) == 0)) |
1013 | fatal("Missing privilege separation directory: %s", | 1013 | fatal("Missing privilege separation directory: %s", |
1014 | _PATH_PRIVSEP_CHROOT_DIR); | 1014 | _PATH_PRIVSEP_CHROOT_DIR); |
1015 | if (st.st_uid != 0 || (st.st_mode & (S_IWGRP|S_IWOTH)) != 0) | ||
1016 | fatal("Bad owner or mode for %s", | ||
1017 | _PATH_PRIVSEP_CHROOT_DIR); | ||
1015 | } | 1018 | } |
1016 | 1019 | ||
1017 | /* Configuration looks good, so exit if in test mode. */ | 1020 | /* Configuration looks good, so exit if in test mode. */ |