Userland problems from kern.pts.enable=1

From: Kris Kennaway <kris_at_obsecurity.org>
Date: Sun, 17 Jun 2007 17:39:48 -0400
When the kern.pts.enable sysctl is set to '1', pseudo-ttys are created
with device name /dev/pts/${NUMBER}.  With some kernel fixes from kib
this appears to now be stable and the kernel side is ready for a
possible change of default.  However, the new device naming confuses
some userland utilities.  For example:

pointyhat# write simon
write: /dev/398: No such file or directory

simon was logged in on /dev/pts/398.

killall -t also fails to parse the new device format:

bento# ps -t pts/187
  PID  TT  STAT      TIME COMMAND
67734 187  Ss     0:00.04 /bin/csh
72599 187  R+     0:00.00 ps -t pts/187
bento# killall -t pts/187
killall: stat(/dev/ttypts/187): No such file or directory

It would also be useful if ps -t recognized a numeric argument as
magic and converted it to add the pts/.  It already appears to do the
converse when displaying the TTY, as you can see above.

There are probably other utilities also affected.

Kris


Received on Sun Jun 17 2007 - 19:39:50 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:12 UTC