Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Sep 2006 20:34:31 +0200 (CEST)
From:      Gabor Kovesdan <gabor@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        Gabor Kovesdan <gabor@FreeBSD.org>
Subject:   bin/103366: tar fails if the tarball has device nodes when jailed
Message-ID:  <20060918183431.5A60E99DDF7@server.t-hosting.hu>
Resent-Message-ID: <200609181840.k8IIeFHC087537@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060918183431.5A60E99DDF7>