Subject: PR 732: TIOCCONS should work if `I' own /dev/console
To: None <firstname.lastname@example.org>
From: Bill Studenmund <email@example.com>
Date: 07/15/1999 16:04:11
The question is why a user who owns /dev/console can't re-direct console
messages somewhere. i.e. why someone logged into the console has to have
his/her screen w/ messages.
I think Charles's analysis is right - we should go looking for the dev
from constty->t_dev, and make sure that the user owns that.
Note: cdevvp isn't the right routine to use, though. It will always return
a VT_NON vnode as the checkalias logic will only replace a block device,
not a character one. We ened to actually go looking and find an existing
vnode of the right type. :-)