From owner-freebsd-bugs@FreeBSD.ORG Mon Sep 18 18:41:20 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org 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 0A4FA16A4D8 for ; Mon, 18 Sep 2006 18:41:19 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A49B143D6E for ; Mon, 18 Sep 2006 18:40:24 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k8IIeFcU087538 for ; Mon, 18 Sep 2006 18:40:15 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k8IIeFHC087537; Mon, 18 Sep 2006 18:40:15 GMT (envelope-from gnats) Resent-Date: Mon, 18 Sep 2006 18:40:15 GMT Resent-Message-Id: <200609181840.k8IIeFHC087537@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, Gabor Kovesdan Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2687D16A407; Mon, 18 Sep 2006 18:34:35 +0000 (UTC) (envelope-from gabor@server.t-hosting.hu) Received: from server.t-hosting.hu (server.t-hosting.hu [217.20.133.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7914043D7D; Mon, 18 Sep 2006 18:34:34 +0000 (GMT) (envelope-from gabor@server.t-hosting.hu) Received: from localhost (localhost [127.0.0.1]) by server.t-hosting.hu (Postfix) with ESMTP id B3F7099DDF8; Mon, 18 Sep 2006 20:34:31 +0200 (CEST) Received: from server.t-hosting.hu ([127.0.0.1]) by localhost (server.t-hosting.hu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id e58gz7WegBfL; Mon, 18 Sep 2006 20:34:31 +0200 (CEST) Received: by server.t-hosting.hu (Postfix, from userid 1009) id 5A60E99DDF7; Mon, 18 Sep 2006 20:34:31 +0200 (CEST) Message-Id: <20060918183431.5A60E99DDF7@server.t-hosting.hu> Date: Mon, 18 Sep 2006 20:34:31 +0200 (CEST) From: Gabor Kovesdan To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Gabor Kovesdan Subject: bin/103366: tar fails if the tarball has device nodes when jailed X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Gabor Kovesdan List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Sep 2006 18:41:20 -0000 >Number: 103366 >Category: bin >Synopsis: tar fails if the tarball has device nodes when jailed >Confidential: no >Severity: non-critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Sep 18 18:40:14 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Gabor Kovesdan >Release: FreeBSD 6.1-RELEASE-p3 amd64 >Organization: n/a >Environment: System: FreeBSD server.t-hosting.hu 6.1-RELEASE-p3 FreeBSD 6.1-RELEASE-p3 #0: Sat Aug 19 11:08:15 CEST 2006 root@server.t-hosting.hu:/usr/src/sys/amd64/compile/FREEBSD amd64 >Description: When one try to extract a tarball that contains device nodes in a jailed environment, it always fails, even if those device nodes are excluded with --exclude. >How-To-Repeat: Try to install emulators/linux_dist-gentoo-stage3 jailed. The port is good, the device nodes are excluded when installing. It installs fine in a host environment, but when jailed, one will get such messages: /usr/bin/tar: ./dev/rd/c3d10p6: Cannot mknod: Operation not permitted /usr/bin/tar: ./dev/rd/c4d19p5: Cannot mknod: Operation not permitted /usr/bin/tar: ./dev/rd/c6d9p4: Cannot mknod: Operation not permitted /usr/bin/tar: ./dev/rd/c6d28p2: Cannot mknod: Operation not permitted /usr/bin/tar: ./dev/rd/c0d19: Cannot mknod: Operation not permitted /usr/bin/tar: ./dev/rd/c2d10p3: Cannot mknod: Operation not permitted /usr/bin/tar: ./dev/rd/c5d28p1: Cannot mknod: Operation not permitted /usr/bin/tar: ./dev/rd/c3d3p3: Cannot mknod: Operation not permitted /usr/bin/tar: ./dev/rd/c2d25p3: Cannot mknod: Operation not permitted [...] There is something weird between the jailed environment and tar. Since all of these files are excluded from the extraction, it should just work silently. This weirdness requires the mentioned package to be built manually from the port and it might affect other areas as well. >Fix: Don't know. >Release-Note: >Audit-Trail: >Unformatted: