xterm -C and TIOCCONS vs. PRIV_TTY_CONSOLE

Craig Leres leres at ee.lbl.gov
Fri Jan 7 03:15:36 UTC 2011


I recently upgraded my desktop from 7.2-RELEASE to 8.1-RELEASE and
noticed that I no longer get biff messages in my "console" xterm window.
I traced this to:

    xterm: cannot open console: Operation not permitted

and see that the TIOCCONS code in tty_generic_ioctl() is checking for
PRIV_TTY_CONSOLE. So far so good. But I don't *any* code that ever
grants PRIV_TTY_CONSOLE! As far as I can tell it's now totally
impossible to ever set a terminal as a console TTY (even for root). This
ioctl has been effectively disabled.

Shouldn't PRIV_TTY_CONSOLE be granted when a user logs onto /dev/ttyvX?

		Craig


More information about the freebsd-hackers mailing list