git: DEVFS - Fix xterm pty allocation, permanently fix pty permissions & ownership

Matthew Dillon dillon at crater.dragonflybsd.org
Thu Aug 13 20:29:02 PDT 2009


commit 4062d05031cc62ee99c09b38f96eb0af355179de
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Thu Aug 13 20:25:43 2009 -0700

    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.

Summary of changes:
 sys/kern/tty_pty.c          |   26 ++++++++++++++++++++++--
 sys/kern/vfs_helper.c       |   15 --------------
 sys/sys/conf.h              |    6 ++--
 sys/vfs/devfs/devfs_core.c  |    4 ++-
 sys/vfs/devfs/devfs_vnops.c |   45 ++++++++++++++++++++++++++++++++++++------
 5 files changed, 67 insertions(+), 29 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/4062d05031cc62ee99c09b38f96eb0af355179de


-- 
DragonFly BSD source repository





More information about the Commits mailing list