From owner-freebsd-hackers Wed Sep 23 03:43:36 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA28326 for freebsd-hackers-outgoing; Wed, 23 Sep 1998 03:43:36 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from gilgamesch.bik-gmbh.de (gilgamesch.bik-gmbh.de [194.233.237.91]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA28288 for ; Wed, 23 Sep 1998 03:43:15 -0700 (PDT) (envelope-from cracauer@gilgamesch.bik-gmbh.de) Received: (from cracauer@localhost) by gilgamesch.bik-gmbh.de (8.8.8/8.7.3) id MAA20767; Wed, 23 Sep 1998 12:42:33 +0200 (MET DST) Message-ID: <19980923124232.A20756@cons.org> Date: Wed, 23 Sep 1998 12:42:32 +0200 From: Martin Cracauer To: "Brian W. Buchanan" , Mike Smith Cc: hackers@FreeBSD.ORG Subject: Re: vty lock References: <199809220806.BAA00624@word.smith.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.1i In-Reply-To: ; from Brian W. Buchanan on Tue, Sep 22, 1998 at 07:52:58AM -0700 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In , Brian W. Buchanan wrote: > On Tue, 22 Sep 1998, Mike Smith wrote: > > > > I want to write a vty locking program similar in function to Linux's > > > vlock. Anyone have (partial?) code implementing something like this, or > > > have any pointers as to what I'd need to modify in the kernel to > > > facilitate this? > > > > What's wrong with /usr/bin/lock? > > I have to terminate or shell out of whatever I'm running at the moment on > each vty and run it, then enter my password 9 or 10 times when I return to > the console. > > Linux's vlock lets you specify -a to instantly lock ALL vtys, which is the > functionality I'm mainly looking for. Then why don't you add that option to our lock? Simplest solution would be to prevent the console driver from switching consoles, which could be done with a simple ioctl for syscons and pcvt. Martin -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Martin Cracauer http://www.cons.org/cracauer BSD User Group Hamburg, Germany http://www.bsdhh.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message