From owner-freebsd-bugs@FreeBSD.ORG Thu Mar 4 11:20:09 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4FF5416A4CE for ; Thu, 4 Mar 2004 11:20:09 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 32A0C43D2F for ; Thu, 4 Mar 2004 11:20:09 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i24JK9bv048001 for ; Thu, 4 Mar 2004 11:20:09 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i24JK9Bx048000; Thu, 4 Mar 2004 11:20:09 -0800 (PST) (envelope-from gnats) Resent-Date: Thu, 4 Mar 2004 11:20:09 -0800 (PST) Resent-Message-Id: <200403041920.i24JK9Bx048000@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Stefan `Sec` Zehl Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1CCA016A4CE for ; Thu, 4 Mar 2004 11:14:45 -0800 (PST) Received: from ice.42.org (ice.42.org [194.77.3.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id CD39B43D46 for ; Thu, 4 Mar 2004 11:14:44 -0800 (PST) (envelope-from sec@42.org) Received: by ice.42.org (Postfix, from userid 1000) id 67E9B1C8BA; Thu, 4 Mar 2004 20:14:43 +0100 (CET) Message-Id: <20040304191443.67E9B1C8BA@ice.42.org> Date: Thu, 4 Mar 2004 20:14:43 +0100 (CET) From: Stefan `Sec` Zehl To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/63772: tap device / exclusive open problem X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Stefan `Sec` Zehl List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Mar 2004 19:20:09 -0000 >Number: 63772 >Category: kern >Synopsis: tap device / exclusive open problem >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Mar 04 11:20:08 PST 2004 >Closed-Date: >Last-Modified: >Originator: Stefan `Sec` Zehl >Release: FreeBSD 5.2-CURRENT i386 >Organization: >Environment: System: FreeBSD dell 5.2-CURRENT FreeBSD 5.2-CURRENT #3: Thu Mar 4 17:37:09 CET 2004 root@dell:/usr/obj/usr/src/sys/DELL i386 >Description: tap(4) says: The Ethernet tunnel device, normally /dev/tapN, is exclusive-open (it cannot be opened if it is already open) and is restricted to the super- user. A read() call will return an error (EHOSTDOWN) if the interface is but this appears to be untrue. The problem affects openvpn (1.6r2) which always ends up using tap0, even if it already in use. >How-To-Repeat: I can have multiple processes reading and writing on a single tap inerface. dell:~#cat /dev/tap0 & [1] 29197 dell:~#cat /dev/tap0 & [2] 29198 dell:~#echo> /dev/tap0 ; echo $? 0 dell:~#jobs [1] - running cat /dev/tap0 [2] + running cat /dev/tap0 >Fix: >Release-Note: >Audit-Trail: >Unformatted: