search for: grantpt

Displaying 20 results from an estimated 174 matches for "grantpt".

2008 Jan 14
0
FreeBSD Security Advisory FreeBSD-SA-08:01.pty
...8-0216, CVE-2008-0217 For general information regarding FreeBSD Security Advisories, including descriptions of the fields above, security branches, and the following sections, please visit <URL:http://security.FreeBSD.org/>. I. Background pt_chown is a setuid root support utility used by grantpt(3) to change ownership of a tty. openpty(3) is a support function in libutil which is used to obtain a pseudo-terminal. script(1) is a utility which makes a typescript of everything printed on a terminal. II. Problem Description Two issues exist in the FreeBSD pty handling. If openpty(3) is c...
2014 Sep 27
2
[PATCH 1/2] Implement realpath()
This is needed as the basis for the readlink -f option. Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- --- a/usr/include/stdlib.h +++ b/usr/include/stdlib.h @@ -92,4 +92,6 @@ static __inline__ int grantpt(int __fd) return 0; /* devpts does this all for us! */ } +__extern char *realpath(const char *, char *); + #endif /* _STDLIB_H */ --- a/usr/klibc/Kbuild +++ b/usr/klibc/Kbuild @@ -60,7 +60,7 @@ klib-y += vsnprintf.o snprintf.o vsprint send.o recv.o \ access.o chmod.o chown.o dup2....
2004 May 04
3
Error with USE_POSIX_THREADS and OpenSSH-3.8p1
Hello, I am using OpenSSH-3.8p1 on HP-UX machine with USE_POSIX_THREADS option. This is for making the kerberos credentials file to be created in the system with PAM. In OpenSSH versions 3.5 when authentication is done with pam kerberos, a /tmp/krb5cc_X_Y file is created on the server side. But the KRB5CCNAME variable is not set by default. So, after we manually set this environment variable, the
2001 Mar 14
3
OpenSSH 2.3.0p1: HP-UX 11.00 64-bit
I have encountered a problem with using OpenSSH 2.3.0p1 on 64-bit HP-UX 11.00 systems. This bug does not exhibit itself on any 32-bit HP-UX 11.00 or HP-UX 10.20 systems that I have built 2.3.0p1 on. OpenSSH 2.3.0p1 was built with HPs ANSI C compiler with OpenSSL 0.9.6 and zlib 1.1.3. The problem is with the call to vhangup(2) in sshd when interactive sessions are started. The problem does not
2013 Feb 19
13
[PATCH] mini-os: implement poll(2)
...LOUT; + } + + DEBUG("poll("); + dump_pollfds(_pfd, _nfds, _timeout); + DEBUG(")\n"); + + return ret; +} + #ifdef HAVE_LWIP int socket(int domain, int type, int protocol) { @@ -1360,7 +1449,6 @@ unsupported_function(int, tcgetattr, 0); unsupported_function(int, grantpt, -1); unsupported_function(int, unlockpt, -1); unsupported_function(char *, ptsname, NULL); -unsupported_function(int, poll, -1); /* net/if.h */ unsupported_function_log(unsigned int, if_nametoindex, -1); -- 1.7.10.4
2016 Jan 06
0
[klibc:master] Remove obsolete getpt() function
....h index 856c647..c2d6264 100644 --- a/usr/include/stdlib.h +++ b/usr/include/stdlib.h @@ -83,7 +83,6 @@ static __inline__ void srandom(unsigned int __s) __extern int unlockpt(int); __extern char *ptsname(int); -__extern int getpt(void); __extern int posix_openpt(int); static __inline__ int grantpt(int __fd) diff --git a/usr/klibc/Kbuild b/usr/klibc/Kbuild index 7d95e87..5521038 100644 --- a/usr/klibc/Kbuild +++ b/usr/klibc/Kbuild @@ -52,7 +52,7 @@ klib-y += vsnprintf.o snprintf.o vsprintf.o sprintf.o \ getenv.o setenv.o putenv.o __put_env.o unsetenv.o \ clearenv.o nullenv.o \ get...
2016 Jan 27
0
[klibc:master] Make posix_openpt() an inline
...ern int unlockpt(int); __extern char *ptsname(int); -__extern int posix_openpt(int); + +static __inline__ int posix_openpt(int __mode) +{ + __extern int open(const char *, int, ...); + + __mode &= ~(O_CREAT | O_TMPFILE); + return open("/dev/ptmx", __mode); +} static __inline__ int grantpt(int __fd) { diff --git a/usr/klibc/Kbuild b/usr/klibc/Kbuild index a0e440d..eba6add 100644 --- a/usr/klibc/Kbuild +++ b/usr/klibc/Kbuild @@ -52,7 +52,7 @@ klib-y += vsnprintf.o snprintf.o vsprintf.o sprintf.o \ getenv.o setenv.o putenv.o __put_env.o unsetenv.o \ clearenv.o nullenv.o \...
2000 Jan 16
1
Report on openssh-1.2.1pre26.tar.gz
...ssh/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:122: `I_PUSH' undeclared (first use this function) pty.c:122: (Eac...
2001 Feb 01
1
linux and _GNU_SOURCE define
I find that adding -D_GNU_SOURCE is useful for linux. This define enable more features from header files. First) i found that define enable declaration/definition of following methods - grantpt(...) - unlockpt(...) - ptsname(...) for device "/dev/ptmx" ( support for ptys, preferred is method openpty (...) ) Second) _GNU_SOURCE enable use of utmpx and wtmpx ( support for login recording, preferred is USE_LOGIN and syslogin_write_entry ) Three) ? at this time i don't know.
2002 Feb 18
4
[Bug 120] sshd fails pty chown() when run as non-root userid
http://bugzilla.mindrot.org/show_bug.cgi?id=120 ------- Additional Comments From markus at openbsd.org 2002-02-19 04:29 ------- can you allocate ptys as non-root? ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
2002 Jun 29
0
fd passing pty handling
We don't currently support SVR4-style fd passing which involves I_SENDFD/I_RECVFD ioctls. I'm not sure if that might help some p platforms with privsep. Some platforms that use STREAMS ptys use a set-uid root helper to handle the privileged portions of pty creation. grantpt(3) has a bit more info. on Solaris 8 it's: /usr/lib/pt_chmod on HP-UX it's: /usr/lbin/chgpt Perhaps this may be useful to support. Someone want to investigate that?
2014 Sep 29
0
[PATCH v2 1/2] Implement realpath()
...n Hutchings <ben at decadent.org.uk> --- v2: Don't implement the BSD/GNU extension of allowing a non-existent last part. Use open(O_PATH) and procfs to get resolved name from the kernel. --- a/usr/include/stdlib.h +++ b/usr/include/stdlib.h @@ -92,4 +92,6 @@ static __inline__ int grantpt(int __fd) return 0; /* devpts does this all for us! */ } +__extern char *realpath(const char *, char *); + #endif /* _STDLIB_H */ --- a/usr/klibc/Kbuild +++ b/usr/klibc/Kbuild @@ -60,7 +60,7 @@ klib-y += vsnprintf.o snprintf.o vsprint send.o recv.o \ access.o chmod.o chown.o dup2....
2001 Jan 30
3
dsa_verify signature incorrect
I am building version 2.3.0p1 of openssh on a UnixWare 2.03 system and am unable to connect with SSH 2. The error I get is: debug: len 55 datafellows 0 debug: dsa_verify: signature incorrect dsa_verify failed for server_host_key The build environment is as follows: gcc 2.95.1 openssl-0.9.6-beta2 I've looked through the archives and found similar problems related to version
2016 Jan 06
0
[klibc:master] Implement realpath()
...c/realpath.c | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 52 insertions(+), 1 deletion(-) diff --git a/usr/include/stdlib.h b/usr/include/stdlib.h index 406f446..856c647 100644 --- a/usr/include/stdlib.h +++ b/usr/include/stdlib.h @@ -92,4 +92,6 @@ static __inline__ int grantpt(int __fd) return 0; /* devpts does this all for us! */ } +__extern char *realpath(const char *, char *); + #endif /* _STDLIB_H */ diff --git a/usr/klibc/Kbuild b/usr/klibc/Kbuild index d3e2b9f..7d95e87 100644 --- a/usr/klibc/Kbuild +++ b/usr/klibc/Kbuild @@ -61,7 +61,7 @@ klib-y += vsnpri...
2000 Jan 07
1
Slackware 4.0: wtmp and pty.c problems
...sr/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' undeclared (first use this function) pty.c:122: (Each undeclar...
2006 Oct 17
0
[PATCH] misc compile fixes for tools on Solaris
...io.c b/tools/console/daemon/io.c --- a/tools/console/daemon/io.c +++ b/tools/console/daemon/io.c @@ -147,7 +147,7 @@ static int domain_create_tty(struct doma int master; bool success; - if ((master = getpt()) == -1 || + if ((master = open("/dev/ptmx",O_RDWR|O_NOCTTY)) == -1 || grantpt(master) == -1 || unlockpt(master) == -1) { dolog(LOG_ERR, "Failed to create tty for domain-%d", dom->domid); diff --git a/tools/console/daemon/utils.c b/tools/console/daemon/utils.c --- a/tools/console/daemon/utils.c +++ b/tools/console/daemon/utils.c @@ -95,7 +95,7 @@ void...
2016 Jan 06
3
[PATCH klibc 0/3] Changes to support initramfs-tools 0.117
initramfs-tools version 0.117 requires 'readlink -f' and 'mount -o defaults' to work. The first two patches were previously submitted but not applied. Ben. Ben Hutchings (3): Implement realpath() readlink: Add -f option mount: Implement -o defaults usr/include/stdlib.h | 2 ++ usr/klibc/Kbuild | 2 +- usr/klibc/realpath.c | 49
2001 Jun 05
5
HPUX: ssh hangs after shell exit
I am aware that there have been several posts related to ssh connections hanging, i have tried to read through most of them in the archives... I am posting this in hopes that it may present something new that will further help resolve this problem. The problem i am having appears to be similar to what others have reported where after typing exit in an interactive shell the connection is not
2000 Jun 28
4
openssh-2.1.1p1 on Debian slink and potato
Just today I compilied openssh-2.1.1p1 on Debian Slink and Potato both to come out with the same problem. I am compiling them with openssl-0.9.5a.. The configure line I use for openssh is below: ./configure --sysconfdir=/etc/ssh --prefix=/usr --with-ssl-dir=../openssl-0.9.5a So I compile, do a make install restart the sshd daemon and everything seems fine. Then when I do a w at the prompt
2002 Dec 25
1
Trouble installing samba
...checking for sysconf... no > checking for mktime... no > checking for rename... no > checking for ftruncate... no > checking for stat64... no > checking for fstat64... no > checking for lstat64... no > checking for fopen64... no > checking for atexit... no > checking for grantpt... no > checking for dup2... no > checking for lseek64... no > checking for ftruncate64... no > checking for readdir64... no > checking for fseek64... no > checking for fseeko64... no > checking for ftell64... no > checking for ftello64... no > checking for setluid... no...