Displaying 20 results from an estimated 170 matches for "ptmx".
2001 Jan 07
0
Linux glibc 2.1 openpty() and /dev/ptmx
Hello,
looking at the pty handling in OpenSSH 2.3.0p1 (hasn't changed much in
CVS, as far as I can tell after a quick look at it), I can see that if
the system provides both /dev/ptmx and openpty() types of pty interface,
the latter is preferred. This is the case on Linux with glibc 2.1.3
and most likely later versions too. However, openpty() is documented
to be dangerous - quote from the glibc manual:
*Warning:* Using the `openpty' function with NAME not set to...
2016 Apr 04
2
Strange behaviour with ptmx file descriptors
...4 Feb 15 17:12 5 -> socket:[383586458]
lrwx------ 1 root root 64 Feb 15 17:12 4 -> socket:[383586457]
lrwx------ 1 root root 64 Feb 15 17:12 3 -> socket:[383585929]
lrwx------ 1 root root 64 Feb 15 17:12 2 -> /dev/null
lrwx------ 1 root root 64 Feb 15 17:12 14 -> /dev/ptmx
lrwx------ 1 root root 64 Feb 15 17:12 13 -> /dev/ptmx
lrwx------ 1 root root 64 Feb 15 17:12 11 -> /dev/ptmx
l-wx------ 1 root root 64 Feb 15 17:12 10 -> pipe:[383586491]
lrwx------ 1 root root 64 Feb 15 17:12 1 -> /dev/null
lrwx------ 1 root root 64 Feb 15 17:12 0...
2000 Jun 12
1
Openssh on SCO Openserver Release 5
...> 0. System information:
>
> $ uname -X
> System = SCO_SV
> Node = scosysv
> Release = 3.2v5.0.4
> KernelID = 97/05/07
> Machine = Pentium
> BusType = ISA
> Serial = 4FC006928
> Users = 16-user
> OEM# = 0
> Origin# = 1
> NumCPU = 1
>
>
> 1. /dev/ptmx
>
> config.h
> My SCO does support the device /dev/ptmx after a fashion, but does not
> enable them as true tty's. This causes problems with sshd. The man page
> says:
> >>>
> Limitations
> ===========
>
> Although /dev/ptmx is referred to as a p...
2001 Jan 31
1
PTY
environment
1)compiler: cc -v
Reading specs from /usr/lib/gcc-lib/i386-slackware-linux/2.95.2/specs
gcc version 2.95.2 19991024 (release)
2)openssh: CVS from 31 jan 2001
3)libc: 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\"
2012 Apr 12
1
Console to RHEL6.1 container
...the past and lxc has a script (lxc-fedora)
to setup a basic Fedora container. Is there something similar or docs
with virtmgr ?
We started out making a copy of the root fs and using that copy as the
root for the container. I made a couple of tweaks to the container rootfs:
1. ensured that /dev/ptmx is a symlink to pts/ptmx
2. Added 'newinstance' option to the devpts mount in fstab
The container xml file is attached.
If devpts entry in container's fstab has the 'newinstance' option, I get a
brief "domain test01 started" message on the stdout.
When I run 'v...
2016 Apr 15
2
Strange behaviour with ptmx file descriptors
Hi Angel and many thanks for your answer
The application still sending & receiving data
.- strace over the application:
write(1, "\33[1;1H\237#SF \234", 44) = 44
<--it was sent from the application to the terminal, but ssh didn't
received this string
read(0, "\10", 1024) = 1 <- the client remained sending data and
it
2011 Feb 10
5
Can''t find root when start vm
...#39;'/dev/sda1 ro''
root = ''/dev/sda2 ro''
And the same problem
In the /dev vm I have:
(initramfs) ls /dev
char console core cpu_dma_latency fd full hvc0 hvc1 hvc2 hvc3 hvc4 hvc5
hvc6 hvc7 input kmsg mapper mem network_latency network_throughput null
port psaux ptmx pts random snapshot ttyx urandom vcs vcs1 vcsa vcsa1
vga_arbiter xen zero
I have tried with vcs vcs1 vcsa vcsa1 but have the error:
mount: mounting /dev/vcs1 on /root failed: No such file or directory
Any idea? I''m making wrong something?
A lot of thanks!
______________________________...
2013 Aug 11
2
Re: Bridging Wireless Cards for KVM
...file I have the following set:
user = "root"
group ="root"
dynamic ownership = 0
clear_emulator_capabilities = 0
cgroup_device_acl = [
"/dev/null", "/dev/full", "/dev/zero",
"/dev/random", "/dev/urandom",
"/dev/ptmx", "/dev/kvm", "/dev/kqemu",
"/dev/rtc", "/dev/hpet",
"/dev/net/tun",
]
I am running Ubuntu 12, which does not use SELinux.
On Fri, Aug 9, 2013 at 8:01 AM, Daniel P. Berrange <berrange@redhat.com>wrote:
> On Thu, Aug 08, 201...
2010 Feb 14
2
Priv Sep SSH has / as CWD
.../dev/null
> sshd 3100 root 3u IPv4 3642329 TCP FOO.DOM:ssh->68-26-27-159.pools.spcsdns.net:54719 (ESTABLISHED)
> sshd 3100 root 4u unix 0xffff8100189aa8c0 3642382 socket
> sshd 3100 root 5u CHR 5,2 778 /dev/ptmx
> sshd 3100 root 6u unix 0xffff810034004ec0 3642390 socket
===============
> lsof -p 3102
> COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
> sshd 3102 kiblerj cwd DIR 9,1 4096 2 /
> sshd 3102 kiblerj rtd D...
2016 Jan 27
0
[klibc:master] Make posix_openpt() an inline
..._inline__ void srandom(unsigned int __s)
__extern 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 __pu...
2002 May 13
1
When will the next rev be released?
I need the version with this bugfix:
http://bugzilla.mindrot.org/show_bug.cgi?id=182 . ("ssh should still force
SIGCHLD to be SIG_DFL when calling ssh-rand-helper")
It is apparently in the next release. Anyone have an estimate of when it
will be released?
thx,
-das
2011 Jan 23
2
Cgroup
...rd
$ libvirtd --version
libvirtd (libvirt) 0.8.6
/etc/libvirt/qemu.conf
cgroup_controllers = [ "cpu", "devices" ]
cgroup_device_acl = [
"/dev/null", "/dev/full", "/dev/zero",
"/dev/random", "/dev/urandom",
"/dev/ptmx", "/dev/kvm", "/dev/kqemu",
"/dev/rtc", "/dev/hpet", "/dev/net/tun",
]
/etc/cgconfig.conf
mount {
cpu = /dev/cgroup/cpu;
cpuacct = /dev/cgroup/cpuacct;
devices = /dev/cgroup/devices;
# memory = /dev/cgroup/memory;
blkio = /dev/cgroup...
2002 Sep 11
1
tru64 sia: move call of session_setup_sia() to do_setusercontext(), letting grantpty() and friends handle pty perms
...If you are using the audit subsystem, the link between a tty and
successive processes may be lost in the audit records. But I do
extensive auditing, and ptys seem to be pretty much useless in audit
trails; it's the process tree that is most useful.
- Tru64 5.0x has the /dev/ptmx device, so the HAVE_DEV_PTMX logic can be
used to access grantpty() in sshpty.c. But OS versions prior to 5.0x do
not have /dev/ptmx, although they *DO HAVE* grantpty. So appropriate
changes and testing will have to be done for earlier versions to see
that grantpty() and all t...
2013 Aug 12
1
Re: Bridging Wireless Cards for KVM
...er = "root"
> group ="root"
> dynamic ownership = 0
> clear_emulator_capabilities = 0
> cgroup_device_acl = [
> "/dev/null", "/dev/full", "/dev/zero",
> "/dev/random", "/dev/urandom",
> "/dev/ptmx", "/dev/kvm", "/dev/kqemu",
> "/dev/rtc", "/dev/hpet",
> "/dev/net/tun",
> ]
You did restart libvirtd after making those setting changes, right ?
The user, group & clear_emulator_capabilities settings are the 3 that
matter...
2013 Aug 11
0
Re: Bridging Wireless Cards for KVM
...file I have the following set:
user = "root"
group ="root"
dynamic ownership = 0
clear_emulator_capabilities = 0
cgroup_device_acl = [
"/dev/null", "/dev/full", "/dev/zero",
"/dev/random", "/dev/urandom",
"/dev/ptmx", "/dev/kvm", "/dev/kqemu",
"/dev/rtc", "/dev/hpet",
"/dev/net/tun",
]
I am running Ubuntu 12, which does not use SELinux.
On Sat, Aug 10, 2013 at 8:30 PM, Joshua McKee <josjunk@gmail.com> wrote:
> Thanks! Unfortunately, I...
2010 Nov 02
1
Libvirt and LXC
...706: debug : virCgroupNew:542 : New group /
03:07:23.707: debug : lxcControllerRun:563 : Setting up private /dev/pts
03:07:23.711: debug : lxcControllerRun:589 : Mouting 'devpts' on
/var/lxc/f14/dev/pts
03:07:23.711: debug : lxcControllerRun:604 : Opening tty on private
/var/lxc/f14/dev/pts/ptmx
03:07:23.714: debug : lxcContainerAvailable:897 : clone call returned
Invalid argument, container support is not enabled
03:07:23.714: debug : lxcContainerStart:848 : Enable network namespaces
03:07:23.718: debug : lxcContainerStart:854 : clone() completed, new
container PID is -1
03:07:23.718: err...
2013 Apr 18
1
libvirt 1.0.3 Vs 1.0.4 / cgroup devices
...17 21:18 full
drwxr-xr-x. 2 root root 0 Apr 17 21:18 hugepages
prw-------. 1 root root 0 Apr 17 21:18 initctl
srw-rw-rw-. 1 root root 0 Apr 17 21:18 log
drwxrwxrwt. 2 root root 40 Apr 17 21:18 mqueue
crw-rw-rw-. 1 root root 1, 3 Apr 17 21:18 null
crw-rw-rw-. 1 root root 5, 2 Apr 18 10:31 ptmx
drwxr-xr-x. 2 root root 0 Apr 17 21:18 pts
crw-r--r--. 1 root root 1, 8 Apr 17 21:19 random
drwxrwxrwt. 2 root root 40 Apr 17 21:18 shm
lrwxrwxrwx. 1 root root 15 Apr 17 21:18 stderr -> /proc/self/fd/2
lrwxrwxrwx. 1 root root 15 Apr 17 21:18 stdin -> /proc/self/fd/0
lrwxrwxrwx. 1 roo...
2002 Dec 13
5
[Bug 245] SSH can not log out under Solaris 2.6
...nal
4) child forks again, calls setsid and attempts to make pty controlling
terminal. This fails because the pty is already controlling terminal for another
session.
Looking at a truss -f of sshd for access to that pty shows:
# grep /dev/pt /tmp/sshd.trace |grep 21690
21690: open64("/dev/ptmx", O_RDWR|O_NOCTTY) = 6
21690: access("/dev/pts/2", 0) = 0
21690: open64("/dev/pts/2", O_RDWR|O_NOCTTY) = 7
21690: stat64("/dev/pts/2", 0xEFFFF020) = 0
21690: chown("/dev/pts/2", 500, 7)...
2002 Mar 25
0
[Bug 184] New: 3.1p1 openssh fails to build a working sshd on Trusted HP-UX 10.26
...OPEN_SOURCE
-D_XOPEN_SOURCE_EXTENDED=1"
+ IPADDR_IN_DISPLAY=yes
+ AC_DEFINE(USE_PIPES)
+ AC_DEFINE(TRUSTED_HPUX)
+ AC_DEFINE(LOGIN_NEEDS_UTMPX)
+ AC_DEFINE(DISABLE_SHADOW)
+ AC_DEFINE(DISABLE_UTMP)
+ AC_DEFINE(SPT_TYPE,SPT_PSTAT)
+ LIBS="$LIBS -lxnet -lsec -lsecpw"
+ disable_ptmx_check=yes
+ ;;
*-*-hpux10*)
if test -z "$GCC"; then
CFLAGS="$CFLAGS -Ae"
***************
*** 1769,1780 ****
fi
if test -z "$no_dev_ptmx" ; then
! AC_CHECK_FILE("/dev/ptmx",
! [
! AC_DEFINE_UNQUOTED(HAVE_DEV_PTMX)
! have_dev_ptmx=1
!...
2004 Apr 08
4
Device majors incorrectly set to 0 during rsync
...1 root sys 11, 7 Mar 30 19:30 clone@0:hme
crw------- 1 root sys 11, 40 Mar 30 19:30 clone@0:le
crw-rw-rw- 1 root sys 11, 107 Mar 30 19:35 clone@0:llc1
crw------- 1 root sys 11, 4 Mar 30 19:35 clone@0:logindmux
crw-rw-rw- 1 root sys 11, 23 Mar 30 19:35 clone@0:ptmx
crw--w---- 1 root tty 0, 0 Apr 8 12:49 cn@0:console
crw--w---- 1 root tty 0, 0 Apr 7 16:32 cn@0:syscon
crw--w---- 1 root tty 0, 0 Mar 30 19:30 cn@0:systty
---snip---
root@ti1us003# ls -l /tmp/foo/
total 0
crw-rw-rw- 1 root sys 0, 0 Mar 30 19:30 arp@0:arp
crw...