From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 7 03:15:36 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 074DA1065672 for ; Fri, 7 Jan 2011 03:15:36 +0000 (UTC) (envelope-from leres@ee.lbl.gov) Received: from fun.ee.lbl.gov (fun.ee.lbl.gov [IPv6:2001:400:610:102::ca]) by mx1.freebsd.org (Postfix) with ESMTP id E89B58FC12 for ; Fri, 7 Jan 2011 03:15:35 +0000 (UTC) Received: from hot.ee.lbl.gov (hot.ee.lbl.gov [IPv6:2001:400:610:102::cb]) (authenticated bits=0) by fun.ee.lbl.gov (8.14.4/8.14.4) with ESMTP id p073FZoh016299 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Thu, 6 Jan 2011 19:15:35 -0800 (PST) Message-ID: <4D268557.2090704@ee.lbl.gov> Date: Thu, 06 Jan 2011 19:15:35 -0800 From: Craig Leres User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.13) Gecko/20110101 Thunderbird/3.1.7 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: xterm -C and TIOCCONS vs. PRIV_TTY_CONSOLE X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jan 2011 03:15:36 -0000 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