diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2002-06-27 18:02:21 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2002-06-27 18:02:21 +0000 |
commit | 596273516c67cfded71acee848de6db4daa41a1a (patch) | |
tree | 0af208ac60edc413019c6e0b3bd168f6d249a720 | |
parent | bdf3e89f1a6d9697c627660cb5ae9828c89ce8f7 (diff) |
- (bal) Cygwin uid0 fix by vinschen@redhat.com
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | sshd.c | 7 |
2 files changed, 9 insertions, 1 deletions
@@ -1,6 +1,7 @@ | |||
1 | 20020628 | 1 | 20020628 |
2 | - (stevesk) [sshd_config] PAMAuthenticationViaKbdInt no; commented | 2 | - (stevesk) [sshd_config] PAMAuthenticationViaKbdInt no; commented |
3 | options should contain default value. from solar. | 3 | options should contain default value. from solar. |
4 | - (bal) Cygwin uid0 fix by vinschen@redhat.com | ||
4 | 5 | ||
5 | 200206027 | 6 | 200206027 |
6 | - OpenBSD CVS Sync | 7 | - OpenBSD CVS Sync |
@@ -1191,4 +1192,4 @@ | |||
1191 | - (stevesk) entropy.c: typo in debug message | 1192 | - (stevesk) entropy.c: typo in debug message |
1192 | - (djm) ssh-keygen -i needs seeded RNG; report from markus@ | 1193 | - (djm) ssh-keygen -i needs seeded RNG; report from markus@ |
1193 | 1194 | ||
1194 | $Id: ChangeLog,v 1.2308 2002/06/27 16:59:50 stevesk Exp $ | 1195 | $Id: ChangeLog,v 1.2309 2002/06/27 18:02:21 mouring Exp $ |
@@ -1035,7 +1035,14 @@ main(int ac, char **av) | |||
1035 | (S_ISDIR(st.st_mode) == 0)) | 1035 | (S_ISDIR(st.st_mode) == 0)) |
1036 | fatal("Missing privilege separation directory: %s", | 1036 | fatal("Missing privilege separation directory: %s", |
1037 | _PATH_PRIVSEP_CHROOT_DIR); | 1037 | _PATH_PRIVSEP_CHROOT_DIR); |
1038 | |||
1039 | #ifdef HAVE_CYGWIN | ||
1040 | if (check_ntsec(_PATH_PRIVSEP_CHROOT_DIR) && | ||
1041 | (st.st_uid != getuid () || | ||
1042 | (st.st_mode & (S_IWGRP|S_IWOTH)) != 0)) | ||
1043 | #else | ||
1038 | if (st.st_uid != 0 || (st.st_mode & (S_IWGRP|S_IWOTH)) != 0) | 1044 | if (st.st_uid != 0 || (st.st_mode & (S_IWGRP|S_IWOTH)) != 0) |
1045 | #endif | ||
1039 | fatal("Bad owner or mode for %s", | 1046 | fatal("Bad owner or mode for %s", |
1040 | _PATH_PRIVSEP_CHROOT_DIR); | 1047 | _PATH_PRIVSEP_CHROOT_DIR); |
1041 | } | 1048 | } |