Date: Fri, 23 Aug 2002 07:41:45 +0300 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: Dima Dorfman <dima@trit.org> Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/lock lock.1 lock.c Message-ID: <20020823044145.GA784@hades.hell.gr> In-Reply-To: <20020728071748.66FD33E1E@turbine.trit.org> References: <200207280713.g6S7DrEN047591@freefall.freebsd.org> <20020728071748.66FD33E1E@turbine.trit.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2002-07-28 07:17 +0000, Dima Dorfman <dima@trit.org> wrote: > Dima Dorfman <dd@FreeBSD.org> wrote: > > Log: > > Add a -v option that prevents switching virtual terminals while this > > terminal is locked. This permits the user to easily lock the entire > > console from a single terminal. > > Despite my requests on -audit, this wasn't reviewed by anyone. Since > lock(1) is setuid root, I would appreciate it if someone could look it > over (although none of the new code should run as root). First of all, sorry for taking so long to reply to this. I have successfully locked my current twice, by playing tricks with screen(1) and lock -v. If I run lock -v -p in a virtual screen window I get: charon@hades[07:37]/home/charon$ lock -v -p lock: locking vty: Inappropriate ioctl for device By running a slightly different version: charon@hades[07:37]/home/charon$ lock -v -p </dev/ttyv1 the virtual terminal locks, but since my current tty is a pty of screen(1) I can't type anything. Now, before anyone hits me with a heavy, blunt thing... I know this isn't supposed to work. The evilness happens when I hit CTRL-ALT-ESC though. There's somewhere a nasty interaction of DDB and the locked consoles. The system freezes and a constant beeping sound can be heard form the PC speaker :-( -- FreeBSD: The Power to Serve <> http://www.FreeBSD.org FreeBSD 5.0-CURRENT #0: Wed Aug 21 22:08:19 EEST 2002 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020823044145.GA784>