Displaying 12 results from an estimated 12 matches for "pty_allocate".
2008 Jul 28
0
PTY allocation without being root
...hen perform the
resource limiting. Right now I'm using this patch, which actually seems
to work on my system:
| --- crypto/openssh/session.c
| +++ crypto/openssh/session.c
| @@ -1867,7 +1867,7 @@
|
| /* Allocate a pty and open it. */
| debug("Allocating pty.");
| - if (!PRIVSEP(pty_allocate(&s->ptyfd, &s->ttyfd, s->tty, sizeof(s->tty)))) {
| + if (!pty_allocate(&s->ptyfd, &s->ttyfd, s->tty, sizeof(s->tty))) {
| if (s->term)
| xfree(s->term);
| s->term = NULL;
I can imagine this is not the right way to do it. I predict this br...
1999 Dec 08
0
apparent fix for Solaris 7 compilation problems
...-----------------------------------
gcc -g -O2 -Wall -I/usr/local/ssl/include -DETCDIR=\"/usr/local/etc\"
-DSSH_PROGRAM=\"/usr/local/bin/ssh\"
-DSSH_ASKPASS_DEFAULT=\"/usr/local/libexec/ssh/ssh-askpass\"
-DHAVE_CONFIG_H -c pty.c -o pty.o
pty.c: In function `pty_allocate':
pty.c:115: `I_PUSH' undeclared (first use in this function)
pty.c:115: (Each undeclared identifier is reported only once
pty.c:115: for each function it appears in.)
make: *** [pty.o] Error 1
---------------------------------------------------------------------
And here's t...
1999 Dec 09
1
openssh-1.2pre16 patch to pty.c for Solaris 2.6
...12/06 12:10:12 deraadt Exp $
gcc -g -O2 -Wall -I/usr/local/ssl/include -DETCDIR=\"/etc/ssh\" \
-DSSH_PROGRAM=\"/usr/local/bin/ssh\" \
-DSSH_ASKPASS_DEFAULT=\"/usr/local/libexec/ssh/ssh-askpass\" \
-DHAVE_CONFIG_H -c pty.c -o pty.o
pty.c: In function `pty_allocate':
pty.c:115: `I_PUSH' undeclared (first use in this function)
pty.c:115: (Each undeclared identifier is reported only once
pty.c:115: for each function it appears in.)
make: *** [pty.o] Error 1
Possible Patch:
Index: pty.c
--- pty.c~ 1999/12/09 09:31:41
+++ pty.c 1999/12/09 16:41:46
@...
2000 Jan 16
1
Report on openssh-1.2.1pre26.tar.gz
...-g -O2 -Wall -I/usr/local/ssl/include \
-DETCDIR=\"/usr/local/openssh/etc\" \
-DSSH_PROGRAM=\"/usr/local/openssh/bin/ssh\" \
-DSSH_ASKPASS_DEFAULT=\"/usr/local/openssh/libexec/ssh/ssh-askpass\" \
-DHAVE_CONFIG_H -c pty.c -o pty.o
pty.c: In function `pty_allocate':
pty.c:100: warning: implicit declaration of function `grantpt'
pty.c:104: warning: implicit declaration of function `unlockpt'
pty.c:108: warning: implicit declaration of function `ptsname'
pty.c:108: warning: assignment makes pointer from integer without a cast
pty.c:12...
2001 Jan 01
0
pty.c problem (was: OpenSSH 2.4.0 patch call..)
Another minor but difficult-to-fix-properly(?) issue:
pty.c: In function `pty_allocate':
pty.c:55: warning: implicit declaration of function `openpty'
this happens if you have HAVE_PTY_H.
To allow building out of the main directory, there is '-I. -I$(srcdir)' in
the Makefile.
Now, because there is 'pty.h', /usr/include/pty.h in '#include <pty.h>...
2001 Jan 31
1
PTY
...bc: GNU libc 2.2.1
output form make pty.o is:
#make pty.o
gcc -g -O2 -Wall -I/usr/local/ssl/include -I. -I. -DETCDIR=\"/etc\"
-D_PATH_SSH_PROGRAM=\"/usr/bin/ssh\"
-D_PATH_SSH_ASKPASS_DEFAULT=\"/usr/libexec/ssh-askpass\" -DHAVE_CONFIG_H -c pty.c
pty.c: In function `pty_allocate':
pty.c:55: warning: implicit declaration of function `openpty'
This is old warning but today i have time to investigate.
GNU libc has pty.h and openssh has pty.h
Problem is that system ( from libc ) pty.h is never included, but !!! OpenSSH
work well good with openpty method.
how to st...
2000 Jun 15
1
SCO OpenServer 5.0.5, issues with MAXPATHLEN and tty devices
These issues affected previous 2. versions of openssh and still
affects openssh-2.1.1p1. The environment is SCO OS 5.0.5 with
the SCO development environment (not gcc, gmake, etc.)
There are two issues, the first is a compilation problem,
and the second is a run-time problem.
The first problem is simply that MAXPATHLEN is not defined. I
found it to be defined in
2000 Jan 07
1
Slackware 4.0: wtmp and pty.c problems
...e24 or pre22), I get the
following error messages:
gcc -g -O2 -Wall -I/usr/local/ssl/include -DETCDIR=\"/etc/ssh\"
-DSSH_PROGRAM=\"/usr/local/bin/ssh\"
-DSSH_ASKPASS_DEFAULT=\"/usr/local/libexec/ssh/ssh-askpass\"
-DHAVE_CONFIG_H -c pty.c -o pty.o
pty.c: In function `pty_allocate':
pty.c:100: warning: implicit declaration of function `grantpt'
pty.c:104: warning: implicit declaration of function `unlockpt'
pty.c:108: warning: implicit declaration of function `ptsname'
pty.c:108: warning: assignment makes pointer from integer without a cast
pty.c:122: `I_PUSH...
2010 Jan 14
9
[Bug 1698] New: Connection stalls on PTY allocation failure
...ed for this
authentication.");
return 0;
}
if (s->ttyfd != -1) {
packet_disconnect("Protocol error: you already have a
pty.");
return 0;
}
...
debug("Allocating pty.");
if (!PRIVSEP(pty_allocate(&s->ptyfd, &s->ttyfd, s->tty,
sizeof(s->tty)))) {
if (s->term)
xfree(s->term);
s->term = NULL;
s->ptyfd = -1;
s->ttyfd = -1;
error("session_pty...
2000 May 19
2
Solved: on Solaris, "couldn't wait for child '...' completion: No child processes"
> John Horne [SMTP:J.Horne at plymouth.ac.uk] wrote:
>
> Emanuel Borsboom <emanuel at heatdeath.org> wrote:
>> Trying to install the portable OpenSSH on Solaris 2.6. Compiling from
>> openssh-2.1.0.tar.gz using gcc. Compiles and installs fine. sshd
>> starts fine. First connection from another system works. Child sshd is
>> forked, but the parent dies
2003 Apr 08
2
OpenSSH 3.6.1p1 on NCR MP-RAS v4.3, several weird terminal problems
I compiled OpenSSH 3.6.1p1 on NCR MP-RAS v4.3 (or at least
"uname -a"'s output of 4.0.3.0 suggests v4.3, I'm not positive).
I was able to compile zlib (1.1.4) and openssl (0.9.7a) with little
trouble.
OpenSSH took hand-hacking the includes.h file as follows:
diff -cr openssh-3.6.1p1/includes.h openssh-3.6.1p1-customized/includes.h
*** openssh-3.6.1p1/includes.h Sun Oct 20
2000 Nov 14
14
New snapshot
I have just uploaded a new snapshot to:
http://www.mindrot.org/misc/openssh/openssh-SNAP-20001114.tar.gz
This snapshot includes Markus Friedl's new SSH2 RSA authentication work
and -R portforwarding for SSH2. Please give these a good test.
The new RSA authentications works similar to the current SSH2 DSA keys,
but requires a little modification to config files. Currently RSA
key cannot be