DEVFS - Fix xterm pty allocation, permanently fix pty permissions & ownership
commit4062d05031cc62ee99c09b38f96eb0af355179de
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 14 Aug 2009 03:25:43 +0000 (13 20:25 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 14 Aug 2009 03:25:43 +0000 (13 20:25 -0700)
tree794f0acff7e41428a6579c00676c1df7f271b157
parent72ed5f2f081eb30411768668554eec72f55c6174
DEVFS - Fix xterm pty allocation, permanently fix pty permissions & ownership

* Remove the hack that was put in place to support sshd and other remote
  terminal programs.

* Add an override mechanic (SI_OVERRIDE) that allows the cdev to take
  over uid, gid, and perms management from the devfs_node.

* Use the override mechanic in the pty code to formally set ownership and
  permissions for the pty/tty pair.
sys/kern/tty_pty.c
sys/kern/vfs_helper.c
sys/sys/conf.h
sys/vfs/devfs/devfs_core.c
sys/vfs/devfs/devfs_vnops.c