From owner-freebsd-current Tue Jul 3 0:31:11 2001 Delivered-To: freebsd-current@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id D3D9037B405 for ; Tue, 3 Jul 2001 00:30:58 -0700 (PDT) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.2/8.11.2) id f637Lkk05830; Tue, 3 Jul 2001 10:21:46 +0300 (EEST) (envelope-from ru) Date: Tue, 3 Jul 2001 10:21:46 +0300 From: Ruslan Ermilov To: Alfred Perlstein Cc: current@FreeBSD.org Subject: Re: TIOCSCTTY Message-ID: <20010703102146.D99875@sunbay.com> Mail-Followup-To: Alfred Perlstein , current@FreeBSD.org References: <20010702185048.A21809@sunbay.com> <20010702111904.O84523@sneakerz.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010702111904.O84523@sneakerz.org>; from bright@sneakerz.org on Mon, Jul 02, 2001 at 11:19:04AM -0500 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, Jul 02, 2001 at 11:19:04AM -0500, 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 > > 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. :) > If you mean UCONSOLE, I doubt this is the case: 1) I do have it compiled in. 2) I run this program under root. 3) I do not have any session that has /dev/console as its controlling tty. Cheers, -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message