From owner-freebsd-current Tue Jul 3 2:55:23 2001 Delivered-To: freebsd-current@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 1C92537B401; Tue, 3 Jul 2001 02:55:20 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id TAA25730; Tue, 3 Jul 2001 19:55:07 +1000 Date: Tue, 3 Jul 2001 19:53:08 +1000 (EST) From: Bruce Evans X-Sender: bde@besplex.bde.org To: Alfred Perlstein Cc: Ruslan Ermilov , current@FreeBSD.ORG Subject: Re: TIOCSCTTY In-Reply-To: <20010702111904.O84523@sneakerz.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 2 Jul 2001, Alfred Perlstein wrote: > * Ruslan Ermilov [010702 10:51] wrote: > > Hi! > > > > Could someone please explain why the following code snippet > > does not work anymore with the "/dev/console" argument? > > > > # ./tiocsctty /dev/console > > tiocsctty: ioctl(/dev/console, TIOCSCTTY): Operation not permitted This still works here. Perhaps another process has aquired /dev/console as its controlling terminal. > I think LINT has an option to allow this. The reason, I think, is > that you don't want non-root users to be able to grab the console > output as it may allow them to obscure evil behavior. :) You must be thinking of UCONSOLE. This has nothing to do with TIOCSTTY. It controls TIOCCONS. TIOCCONS is evil (it currently implements panic(3) (see another thread)), but TIOCSCTTY is very important for setting up job control. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message