From owner-freebsd-stable@FreeBSD.ORG Mon Oct 20 11:40:20 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C9351559 for ; Mon, 20 Oct 2014 11:40:20 +0000 (UTC) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.81]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8870C82F for ; Mon, 20 Oct 2014 11:40:20 +0000 (UTC) Received: from smtp.greenhost.nl ([213.108.104.138]) by smarthost1.greenhost.nl with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1XgBJt-0006vi-2F for freebsd-stable@freebsd.org; Mon, 20 Oct 2014 13:40:19 +0200 Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes To: freebsd-stable@freebsd.org Subject: Re: 10.1-RC1 tar(1) spurious directory traversal permission error References: <20141020090424.GB1120@rwpc15.gfn.riverwillow.net.au> <20141020101306.GD1120@rwpc15.gfn.riverwillow.net.au> <20141020103617.GE1120@rwpc15.gfn.riverwillow.net.au> Date: Mon, 20 Oct 2014 13:40:12 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Ronald Klop" Message-ID: In-Reply-To: <20141020103617.GE1120@rwpc15.gfn.riverwillow.net.au> User-Agent: Opera Mail/12.17 (Win32) X-Authenticated-As-Hash: 398f5522cb258ce43cb679602f8cfe8b62a256d1 X-Virus-Scanned: by clamav at smarthost1.samage.net X-Spam-Level: - X-Spam-Score: -1.0 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED, BAYES_20 autolearn=disabled version=3.3.2 X-Scan-Signature: 2ecd0b53b7de9511489f92806276a3d7 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Oct 2014 11:40:20 -0000 On Mon, 20 Oct 2014 12:36:17 +0200, John Marshall wrote: > On Mon, 20 Oct 2014, 21:13 +1100, John Marshall wrote: >> On Mon, 20 Oct 2014, 11:22 +0200, Ronald Klop wrote: >> > Maybe the output of 'truss -o /tmp/truss.txt tar -czf dtt.tgz -C >> > /data/tftp/thlan .' gives interesting information about what is >> exactly >> > giving the permission denied. > >> $ truss -o /tmp/truss.txt tar -czf dtt.tgz -C /data/tftp/thlan . >> tar: .: Unable to continue traversing directory tree: Permission >> denied >> tar: Error exit delayed from previous errors. >> truss: can not get etype: No such process >> $ > > Ahh, > > # sysctl security.bsd.unprivileged_proc_debug=1 > security.bsd.unprivileged_proc_debug: 0 -> 1 > > Copy of truss output available here: > > http://www.riverwillow.net.au/~john/10.1/tar_truss.txt > Interesting. Maybe the people at the mailinglists at http://www.libarchive.org/ are also interested. That is the source of the tar command in FreeBSD. Ronald.