Displaying 20 results from an estimated 27 matches for "is_winnt".
Did you mean:
is_hint
2001 Jul 11
2
[PATCH]: Cygwin: Allow sshd to switch user context without password
...2001/04/13 14:28:42 1.4
+++ openbsd-compat/bsd-cygwin_util.c 2001/07/11 20:35:40
@@ -21,10 +21,14 @@ RCSID("$Id: bsd-cygwin_util.c,v 1.4 2001
#include <fcntl.h>
#include <stdlib.h>
+#include <sys/utsname.h>
#include <sys/vfs.h>
#include <windows.h>
#define is_winnt (GetVersion() < 0x80000000)
+#define ntsec_on(c) ((c) && strstr((c),"ntsec") && !strstr((c),"nontsec"))
+#define ntea_on(c) ((c) && strstr((c),"ntea") && !strstr((c),"nontea"))
+
#if defined(open) && open ==...
2003 Jan 09
1
[PATCH] Allow multiple accounts on Windows 9x/Me
...=========================
RCS file: /cvs/openssh_cvs/session.c,v
retrieving revision 1.227
diff -u -p -r1.227 session.c
--- session.c 7 Jan 2003 06:38:59 -0000 1.227
+++ session.c 9 Jan 2003 22:23:15 -0000
@@ -1204,7 +1204,7 @@ void
do_setusercontext(struct passwd *pw)
{
#ifdef HAVE_CYGWIN
- if (is_winnt) {
+ {
#else /* HAVE_CYGWIN */
if (getuid() == 0 || geteuid() == 0) {
#endif /* HAVE_CYGWIN */
@@ -1257,6 +1257,9 @@ do_setusercontext(struct passwd *pw)
permanently_set_uid(pw);
#endif
}
+#ifdef HAVE_CYGWIN
+ if (is_winnt)
+#endif
if (getuid() != pw->pw_uid || geteuid() != pw->pw...
2001 Feb 21
2
SCO 5.0.5 setluid patch
I downloaded openssh-2.5.1p1 as soon as it was on the ftp servers just
to get the setluid patch. After compiling and installing on 5.0.5 I saw
that the luid still wasn't being set correctly whether sshd was run from
inetd or as a daemon from /etc/rc2.d/. I fiddled around and moved the
setluid() stuff up higher in session.c and now luid is now being set
correctly. I provided a regular diff
2002 Apr 22
0
[Bug 101] session.c modifications for correct UNICOS behavior
http://bugzilla.mindrot.org/show_bug.cgi?id=101
------- Additional Comments From wendyp at cray.com 2002-04-23 08:43 -------
updated patches for 22 april snapshot:
--- session.c.orig Mon Apr 22 14:36:13 2002
+++ session.c Mon Apr 22 16:31:15 2002
@@ -64,6 +64,10 @@
#define is_winnt (GetVersion() < 0x80000000)
#endif
+#ifdef _CRAY
+#include <tmpdir.h>
+#endif /* _CRAY */
+
/* func */
Session *session_new(void);
@@ -425,11 +429,17 @@
if (dup2(err[0], 2) < 0) /* stderr */
perror("dup2 stderr");
#e...
2003 Aug 03
2
[PATCH] Fix minor breakage on Cygwin: auth-passwd.c and session.c
...4:49 -0000 1.58
+++ auth-passwd.c 2 Aug 2003 14:54:06 -0000
@@ -43,6 +43,14 @@
#include "servconf.h"
#include "auth.h"
#include "openbsd-compat/xcrypt.h"
+
+# ifdef HAVE_CYGWIN
+# undef ERROR
+# include <windows.h>
+# include <sys/cygwin.h>
+# define is_winnt (GetVersion() < 0x80000000)
+# endif
+
#ifdef WITH_AIXAUTHENTICATE
# include "buffer.h"
# include "canohost.h"
Index: session.c
===================================================================
RCS file: /usr/local/src/security/openssh/cvs/openssh_cvs/session.c,v
r...
2002 Jul 15
1
Patch: remove unused tty variable from session.c
...nssh/session.c,v
retrieving revision 1.210
diff -u -r1.210 session.c
--- session.c 4 Jul 2002 03:08:41 -0000 1.210
+++ session.c 15 Jul 2002 11:50:14 -0000
@@ -1159,8 +1159,6 @@
void
do_setusercontext(struct passwd *pw)
{
- char tty='\0';
-
#ifdef HAVE_CYGWIN
if (is_winnt) {
#else /* HAVE_CYGWIN */
--
Darren Tucker (dtucker at zip.com.au)
GPG Fingerprint D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
2002 Jul 31
0
[PATCH]: Match Cygwin version check to reality
.../openbsd-compat/bsd-cygwin_util.c,v
retrieving revision 1.8
diff -u -p -r1.8 bsd-cygwin_util.c
--- openbsd-compat/bsd-cygwin_util.c 15 Apr 2002 22:00:52 -0000 1.8
+++ openbsd-compat/bsd-cygwin_util.c 31 Jul 2002 09:47:29 -0000
@@ -43,6 +43,7 @@ RCSID("$Id: bsd-cygwin_util.c,v 1.8 2002
#define is_winnt (GetVersion() < 0x80000000)
#define ntsec_on(c) ((c) && strstr((c),"ntsec") && !strstr((c),"nontsec"))
+#define ntsec_off(c) ((c) && strstr((c),"nontsec"))
#define ntea_on(c) ((c) && strstr((c),"ntea") && !...
2002 Jun 25
3
BSD/OS with privsep
...c Authctxt*
privsep_preauth(void)
{
Authctxt *authctxt = NULL;
int status;
pid_t pid;
/* Set up unprivileged child process to deal with network data */
--- session.c.orig Tue Jun 25 13:28:07 2002
+++ session.c Tue Jun 25 13:33:16 2002
@@ -1154,22 +1154,26 @@
{
#ifdef HAVE_CYGWIN
if (is_winnt) {
#else /* HAVE_CYGWIN */
if (getuid() == 0 || geteuid() == 0) {
#endif /* HAVE_CYGWIN */
#ifdef HAVE_SETPCRED
setpcred(pw->pw_name);
#endif /* HAVE_SETPCRED */
#ifdef HAVE_LOGIN_CAP
- if (setusercontext(lc, pw, pw->pw_uid,
- (LOGIN_SETALL & ~LOGIN_SETPATH)) < 0) {
+...
2002 Jul 04
4
Chroot patch (v3.4p1)
....4p1/session.c Wed Jul 3 16:29:01 2002
@@ -57,6 +57,8 @@
#include "canohost.h"
#include "session.h"
#include "monitor_wrap.h"
+#include "match.h"
+#include "readconf.h"
#ifdef HAVE_CYGWIN
#include <windows.h>
@@ -64,6 +66,8 @@
#define is_winnt (GetVersion() < 0x80000000)
#endif
+#define CHROOT
+
/* func */
Session *session_new(void);
@@ -1160,6 +1164,12 @@
do_setusercontext(struct passwd *pw)
{
char tty='\0';
+ int i;
+#ifdef CHROOT
+ char *new_root = "/";
+ const char *hostname = N...
2002 Feb 04
0
[Bug 101] New: session.c modifications for correct UNICOS behavior
...jid and tmpdir */
+#endif
/* Do processing for the child (exec command etc). */
do_child(s, command);
/* NOTREACHED */
}
+#ifdef _CRAY
+ signal(WJSIGNAL, cray_job_termination_handler);
+#endif /* _CRAY */
#ifdef HAVE_CYGWIN
if (is_winnt)
cygwin_set_impersonation_token(INVALID_HANDLE_VALUE);
@@ -586,7 +595,12 @@
/* record login, etc. similar to login(1) */
#ifndef HAVE_OSF_SIA
if (!(options.use_login && command == NULL))
+ {
+# ifdef _CRAY
+...
2002 Jun 14
1
[PATCH]: auth-passwd.c: Eliminate a Cygwin special case
...ord(Authctxt *authctxt, const
if (pw->pw_uid == 0 && options.permit_root_login != PERMIT_YES)
return 0;
#endif
-#ifdef HAVE_CYGWIN
- /*
- * Empty password is only possible on NT if the user has _really_
- * an empty password and authentication is done, though.
- */
- if (!is_winnt)
-#endif
if (*password == '\0' && options.permit_empty_passwd == 0)
return 0;
#ifdef KRB5
--
Corinna Vinschen
Cygwin Developer
Red Hat, Inc.
mailto:vinschen at redhat.com
2002 Nov 09
1
[PATCH] Two Cygwin related patches
...s/openbsd-compat/bsd-cygwin_util.c,v
retrieving revision 1.8
diff -u -p -r1.8 bsd-cygwin_util.c
--- openbsd-compat/bsd-cygwin_util.c 15 Apr 2002 22:00:52 -0000 1.8
+++ openbsd-compat/bsd-cygwin_util.c 9 Nov 2002 09:25:09 -0000
@@ -43,6 +43,7 @@ RCSID("$Id: bsd-cygwin_util.c,v 1.8 2002
#define is_winnt (GetVersion() < 0x80000000)
#define ntsec_on(c) ((c) && strstr((c),"ntsec") && !strstr((c),"nontsec"))
+#define ntsec_off(c) ((c) && strstr((c),"nontsec"))
#define ntea_on(c) ((c) && strstr((c),"ntea") && !...
2001 Nov 20
1
[PATCH]: Allow SSHD to install as service under WIndows 9x/Me
...vice starter
+ * application to register and control sshd as service. This method
+ * doesn't play nicely with 9x/Me. For that reason we register here
+ * as service when running under 9x/Me. This function is only called
+ * by the child sshd when it's going to daemonize.
+ */
+ if (is_winnt)
+ return;
+ if (! (kerneldll = LoadLibrary("KERNEL32.DLL")))
+ return;
+ if (! (RegisterServiceProcess = (DWORD (*)(DWORD, DWORD))
+ GetProcAddress(kerneldll, "RegisterServiceProcess")))
+ return;
+ RegisterServiceProcess(0, 1);
+}
+
#endif /* HAVE_CYGWIN */
Index: open...
2001 Dec 18
2
[PATCH]: Fix potential security hole in Cygwin version
...pwd_authenticated, uid_t uid)
+int check_nt_auth(int pwd_authenticated, struct passwd *pw)
{
/*
* The only authentication which is able to change the user
@@ -73,6 +73,8 @@ int check_nt_auth(int pwd_authenticated,
*/
static int has_create_token = -1;
+ if (pw == NULL)
+ return 0;
if (is_winnt) {
if (has_create_token < 0) {
struct utsname uts;
@@ -90,7 +92,7 @@ int check_nt_auth(int pwd_authenticated,
}
}
if (has_create_token < 1 &&
- !pwd_authenticated && geteuid() != uid)
+ !pwd_authenticated && geteuid() != pw->pw_uid)
re...
2002 Jun 28
1
[Bug 315] New: add miissing includes and defines for FREEBSD
...Severity: normal
Priority: P2
Component: Build system
AssignedTo: openssh-unix-dev at mindrot.org
ReportedBy: dirk.meyer at dinoex.sub.org
--- session.c.orig Wed Jun 26 15:51:06 2002
+++ session.c Wed Jun 26 18:20:35 2002
@@ -64,6 +64,13 @@
#define is_winnt (GetVersion() < 0x80000000)
#endif
+#ifdef __FreeBSD__
+#include <libutil.h>
+#include <syslog.h>
+#include <time.h>
+#define _PATH_CHPASS "/usr/bin/passwd"
+#endif /* __FreeBSD__ */
+
/* func */
Session *session_new(void);
------- You are receiving thi...
2001 May 01
1
Problem with .hushlogin in Tru64 UNIX 4.0e
I have tried this with openssh-2.5.2p2 and openssh-SNAP-20010501.
I have noticed that with a .hushlogin file in my home directory I still
get messages.
With the .hushlogin file I get these messages:
Last successful login for ricardo: Tue May 1 08:06:00 2001 from
blah.mnsu.edu
Last unsuccessful login for ricardo: Tue May 1 08:05:21 2001 from
blah.mnsu.edu
Without the .hushlogin file I get
2002 Jul 30
0
patch: disable credential forwarding after password auth.
...if (options.kerberos_authentication == 1) {
int ret = auth_krb5_password(authctxt, password);
- if (ret == 1 || ret == 0)
- return ret;
+ if (ret == 1 || ret == 0) {
+ retval=ret ; goto out;
+ }
/* Fall back to ordinary passwd authentication. */
}
#endif
@@ -138,29 +147,34 @@
if (is_winnt) {
HANDLE hToken = cygwin_logon_user(pw, password);
- if (hToken == INVALID_HANDLE_VALUE)
- return 0;
+ if (hToken == INVALID_HANDLE_VALUE) {
+ retval=0 ; goto out;
+ }
cygwin_set_impersonation_token(hToken);
- return 1;
+ retval=1;
+ goto out;
}
#endif
#ifdef WITH_AIXAUTHENT...
2001 Mar 21
1
Tru64 UNIX SIA in 2.5.2p1 is hosed (still)
The recent patch posted by Steve VanDevender <stevev at darkwing.uoregon.edu>
for fixing the session code on Tru64 isn't quite right -- it still fails
in the case of NO tty being allocated.
The problem is that s->tty is a char[TTYSZ] rather than a char *, and
hence can't hold a NULL. Calling sia_ses_init() with the tty being an
empty string doesn't signify no tty, and
2001 Feb 26
0
Problems with OpenSSH 2.5.1p1 on Solaris 8
...So integrate it as you see fit.
--
.-. .-. Sarcasm is just one more service we offer.
(_ \ / _)
| dave at arsdigita.com
|
-------------- next part --------------
--- session.c.orig Mon Feb 26 14:36:13 2001
+++ session.c Mon Feb 26 17:03:10 2001
@@ -78,6 +78,10 @@
#define is_winnt (GetVersion() < 0x80000000)
#endif
+#ifdef HAVE_ETC_DEFAULT_LOGIN
+#include <sys/mman.h>
+#endif
+
/* AIX limits */
#if defined(HAVE_GETUSERATTR) && !defined(S_UFSIZE_HARD) && defined(S_UFSIZE)
# define S_UFSIZE_HARD S_UFSIZE "_hard"
@@ -1173,6 +1177,...
2002 Jun 25
1
PrivSep and AIX 4.3.2
With 3.3p1 built on AIX 4.3.2:
$ ssh [blah]
Couldn't set usrinfo: Not owner
debug1: Calling cleanup 0x20019080(0x200219a0)
debug3: mm_request_send entering: type 27
debug1: Calling cleanup 0x20018dd4(0x0)
Connection to songohan closed by remote host.
Connection to songohan closed.
Output from sshd -d -d -d:
...
debug3: tty_parse_modes: 92 0
debug3: tty_parse_modes: 93 0