From owner-freebsd-bugs Fri Dec 14 3:50:16 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 7348C37B417 for ; Fri, 14 Dec 2001 03:50:07 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id fBEBo7J25362; Fri, 14 Dec 2001 03:50:07 -0800 (PST) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 464EA37B417 for ; Fri, 14 Dec 2001 03:40:18 -0800 (PST) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id fBEBeIx24089; Fri, 14 Dec 2001 03:40:18 -0800 (PST) (envelope-from nobody) Message-Id: <200112141140.fBEBeIx24089@freefall.freebsd.org> Date: Fri, 14 Dec 2001 03:40:18 -0800 (PST) From: Rocco Lucia To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: bin/32828: w incorrectly handles stale utmp slots with jail Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 32828 >Category: bin >Synopsis: w incorrectly handles stale utmp slots with jail >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Dec 14 03:50:07 PST 2001 >Closed-Date: >Last-Modified: >Originator: Rocco Lucia >Release: 4.4 >Organization: >Environment: FreeBSD signonssh.cs.tin.it 4.4-STABLE FreeBSD 4.4-STABLE #1: Mon Dec 3 10:11:14 CET 2001 root@signonssh.cs.tin.it:/usr/obj/usr/src/sys/SIGNONSSH i386 >Description: While using jail, w command on host machine erroneously handles 'current process' for a stale utmp slot. It will show as 'current process' that one who is actually run in the jail and whose controlling terminal line is the same as it was used in the host machine. >How-To-Repeat: 1. log into the jail and allocate different ttys (screen could help) 2. log into the host machine and have the process killed or disconnected (create a stale utmp record) Manage steps 1 and 2 so that you have at least a session on host machine and a session in the prison that share same tty name (/dev/ttyp1 on host, and ${JAIL}/dev/ttyp1 in the prison). 3. now issue the w command on the host system and you'll see the 'current process' for the stale utmp record being a process running in the jail but that has same tty (though on two different environments). >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message