From patchwork Sat Oct 27 07:45:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 989841 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=free.fr Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="OyQsrmWV"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42htGJ03lLz9s8F for ; Sat, 27 Oct 2018 18:46:15 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 9F6EE87851; Sat, 27 Oct 2018 07:46:12 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5kN6yoLyb+4Q; Sat, 27 Oct 2018 07:46:11 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 9AE048781E; Sat, 27 Oct 2018 07:46:11 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 474B61BF5AF for ; Sat, 27 Oct 2018 07:46:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 42E3C87830 for ; Sat, 27 Oct 2018 07:46:07 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nGx4QI9MMNju for ; Sat, 27 Oct 2018 07:46:06 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) by whitealder.osuosl.org (Postfix) with ESMTPS id 333AB8781C for ; Sat, 27 Oct 2018 07:46:06 +0000 (UTC) Received: by mail-wm1-f66.google.com with SMTP id y140-v6so5663210wmd.0 for ; Sat, 27 Oct 2018 00:46:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=DRA0RmnqSAXcbx0yo99JqErGMIQBq/EGJTNdKetF5KQ=; b=OyQsrmWVaxHTjtkZ68LIptY2dlLXUAG3OG2fXVB5Y3u4EyqBQXf/K8TaLd2C4eVX29 sz7QzHNUJKYvYmxna8X+shRuWN/o/nqKPTzl4zF5BHxl4zksqvaxggje6dS2TuOoHOdA HwWv9DSPRkqhHVXXBZMkj9uhkAyd5ACUctJuEMtqMhocE4uJ0P1Fv3N0nOgB5Nlk5Bhf l7BI/Sv1hYU5VeKyKlAOmDwXAMDtlVCNM3fWdVuxL7vcGNiwhVixESxZD33s6qFYbltk hKt+x35s2dndKqO700sKoZ8WAsmN1rhYC3aGFIKCjyhOCwShFWL0yUeu9meqoaffLuji kyaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=DRA0RmnqSAXcbx0yo99JqErGMIQBq/EGJTNdKetF5KQ=; b=ad6JtMHEGBIjdKR2k5ZfodzBBZssV6nFQy3w/CVzT9O4xzwKykfzsDcRUrGD1qXZH4 UVW4cowFzUb7Mkq5qo6yfSd0WE419m9SP1SXBsqiUz4z8lGhXN0EeIfXGlAPdz4onkBG oK/MP2WAWSSSwt+FBen563ybzsrpKerm3mwICkeAWWN8QtbqDnbg7Bx+O4N3TmZj4Phw VPteSpFLEZQzMCUQd79lNTmGWthHf/URoK5zhWcbK8c15UlX/PtsSdAb0C+ljT1xTwRy 5XchhoBHE+8gj3VlqV2fKKP0ZrSBZW2LG0BjHXh8+ZKuDHcUyK3G11CGrGYDMxHEeuvY x9bQ== X-Gm-Message-State: AGRZ1gKk0b8B1VREx1eBkERF0nrUh45DaYV2TZdJd55ILDR36cnxK85j DzYTRbFEcRArk9jo9rP+pCRkJ9n6 X-Google-Smtp-Source: AJdET5epjSJEbhnusH/Pox33M046uColHKY5yh1lNlQ362ozJ8ugKP9H6NHhfP79XykKhMCCH+Zaeg== X-Received: by 2002:a1c:f53:: with SMTP id 80-v6mr7464080wmp.58.1540626364168; Sat, 27 Oct 2018 00:46:04 -0700 (PDT) Received: from scaer.event.pylonone.net ([2a01:cb19:829a:2800:68e8:7a61:9bb9:12a]) by smtp.gmail.com with ESMTPSA id 140-v6sm7375502wmx.34.2018.10.27.00.46.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 27 Oct 2018 00:46:03 -0700 (PDT) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Sat, 27 Oct 2018 09:45:59 +0200 Message-Id: X-Mailer: git-send-email 2.14.1 In-Reply-To: References: Subject: [Buildroot] [PATCH 2/3] fs: be oblivious of pre-existing xattrs X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Petazzoni , "Yann E. MORIN" , Ricardo Martincoski MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Now that we handle permissions in each filesystems, and no longer in the intermediate tarball, we no longer need tar to store extended attributes. What's more, we really want it to store no attributes at all, to be sure we don't have rogue extended attributes leaking in... Signed-off-by: "Yann E. MORIN" Cc: Ricardo Martincoski Cc: Matthew Weber Cc: Thomas Petazzoni Tested-by: Matthew Weber --- fs/common.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fs/common.mk b/fs/common.mk index 569e5d60c5..fd1e80ab93 100644 --- a/fs/common.mk +++ b/fs/common.mk @@ -45,6 +45,7 @@ ROOTFS_COMMON_TAR = $(FS_DIR)/rootfs.common.tar # Command to create the common tarball from the base target directory. define ROOTFS_COMMON_TAR_CMD tar cf $(ROOTFS_COMMON_TAR) --numeric-owner \ + --no-xattrs \ --exclude=$(notdir $(TARGET_DIR_WARNING_FILE)) \ -C $(TARGET_DIR) . endef @@ -52,7 +53,9 @@ endef # Command to extract the common tarball into the per-rootfs target directory define ROOTFS_COMMON_UNTAR_CMD mkdir -p $(TARGET_DIR) - tar xf $(ROOTFS_COMMON_TAR) -C $(TARGET_DIR) + tar xf $(ROOTFS_COMMON_TAR) \ + --no-xattrs \ + -C $(TARGET_DIR) endef .PHONY: rootfs-common