cvs commit: src/sys/kern tty.c

Ed Schouten ed at FreeBSD.org
Sat Sep 6 14:43:41 UTC 2008


ed          2008-09-06 14:43:32 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             tty.c 
  Log:
  SVN rev 182815 on 2008-09-06 14:43:32Z by ed
  
  Make TIOCCONS use priv_check() instead of checking /dev/console permissions.
  
  As discussed with Robert on IRC, checking the permissions on
  /dev/console to see if we can call TIOCCONS could be unreliable. When we
  run a chroot() without a devfs instance mounted inside, it won't
  actually check the permissions on the device node inside the devfs
  instance.
  
  Using the already existing PRIV_TTY_CONSOLE for this seems like a better
  idea.
  
  Approved by:    rwatson
  
  Revision  Changes    Path
  1.288     +8 -35     src/sys/kern/tty.c


More information about the cvs-src mailing list