From owner-freebsd-bugs@FreeBSD.ORG Tue Aug 29 20:00:38 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 61A0616A4E2 for ; Tue, 29 Aug 2006 20:00:38 +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 432BC43D5A for ; Tue, 29 Aug 2006 20:00:37 +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 k7TK0blQ004914 for ; Tue, 29 Aug 2006 20:00:37 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k7TK0aL9004912; Tue, 29 Aug 2006 20:00:37 GMT (envelope-from gnats) Resent-Date: Tue, 29 Aug 2006 20:00:37 GMT Resent-Message-Id: <200608292000.k7TK0aL9004912@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, Kenneth Vestergaard Schmidt Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ABD9616A4DD for ; Tue, 29 Aug 2006 19:55:46 +0000 (UTC) (envelope-from kvs@binarysolutions.dk) Received: from ns2.pil.dk (ns2.pil.dk [195.41.47.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5945643D46 for ; Tue, 29 Aug 2006 19:55:46 +0000 (GMT) (envelope-from kvs@binarysolutions.dk) Received: from donkey.binarysolutions.dk (naboo.binarysolutions.dk [80.196.17.173]) by ns2.pil.dk (Postfix) with ESMTP id CC3517BA360; Tue, 29 Aug 2006 21:55:44 +0200 (CEST) Received: by donkey.binarysolutions.dk (Postfix, from userid 1001) id 8D468621B; Tue, 29 Aug 2006 21:55:35 +0200 (CEST) Message-Id: <20060829195535.8D468621B@donkey.binarysolutions.dk> Date: Tue, 29 Aug 2006 21:55:35 +0200 (CEST) From: Kenneth Vestergaard Schmidt To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: kvs@pil.dk Subject: bin/102661: libarchive follows symlinks when setting flags X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Kenneth Vestergaard Schmidt List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Aug 2006 20:00:38 -0000 >Number: 102661 >Category: bin >Synopsis: libarchive follows symlinks when setting flags >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Aug 29 20:00:36 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Kenneth Vestergaard Schmidt >Release: FreeBSD 7.0-CURRENT i386 >Organization: >Environment: System: FreeBSD donkey.binarysolutions.dk 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Sat Aug 26 03:20:52 CEST 2006 root@donkey.binarysolutions.dk:/usr/obj/usr/src/sys/X30 i386 >Description: A warning would be produced when extracting symlinks, where st->st_flags is non-zero. This became a problem when creating ports-packages in a unionfs-mounted directory, since the 'opaque' flag is set on especially symlinks in /usr/local/lib/ >How-To-Repeat: Set a flag on a symlink, create a tarball containing that symlink, and extract. Theoretically, this might be used to set/clear flags on the symlink- target, which could pose a problem. >Fix: We've added a one-line patch to use lstat instead of stat in set_fflags(), but it might also be better to be able to skip flags in tar, or possibly ignore the opaque-flag. >Release-Note: >Audit-Trail: >Unformatted: