Date: Sat, 6 Sep 2008 14:43:32 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern tty.c Message-ID: <200809061443.m86EhfGP015182@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200809061443.m86EhfGP015182>