From patchwork Wed Nov 3 17:13:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 516791 Delivered-To: patch@linaro.org Received: by 2002:ad5:5208:0:0:0:0:0 with SMTP id p8csp904371iml; Wed, 3 Nov 2021 10:22:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWn1ntBCbImmXZmQA2No1goVWuWh8qQn5kXwCJtpbl1wORJwxsNm9HRj64/0EGH+rzC1f6 X-Received: by 2002:a9d:51ca:: with SMTP id d10mr32927193oth.371.1635960140547; Wed, 03 Nov 2021 10:22:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635960140; cv=none; d=google.com; s=arc-20160816; b=eOuEuEZ4WMLbiwComai6QCqj2X2zRE42USA0IGbI0YtVUAdJn+1JXdnJFbAkZHSMnk w9rIIDrUsawGjsdVBcpukIOHPyG2eiGPbKlnonM7EGFiQZYm3YTfJy8iBJ657ngRsHi7 HUsxA9byZoi58pl8RMwv6euk7Ne4wrDNQivlhAHlzb8BYZWLNRTi+oyLUeqjBBWTu5v0 gTA5BX2CJU+no5B5igff78IdZCn19ZUEnAOy22rhsash4X9eL/vh57iePsTsObXGt/Ka tgo+cDQWwF/EfN3lEkHSjkVNReYzEI36ZCEFLX2HBdrcHUNEr8Q5UVL1be4K2aG7En6L 0i7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature; bh=6L7V8FBbm3jTst1al+hCD3I4R6kwO4ndmzZB8XWsSP8=; b=xCqOwbFFs7jKcBPrBpV+/Qjc+U1mA1HXpgIe2Pm986lLOVxzgF5+ngcBkfXQjeSRTm y000JhE5mGPoPy3o4eotIR5xH9nKRIgUtgONvfJomvQZQR6PNj9/fHV5hvPf9kTfEbkz PqU6xnrE5jFGtax/Ti9hBilu4VgZU/EgMCtLHEeJc/mYhbM1as1GyoDW/JZ+bZ3ZMu5j w+uCJCJsXyJl4AkNsKQ5iXWR/VS+ccjV8BotVJGWB4ZSHr+tyUkk8z0mcR9nws3JdBit 77mdTtFpymUmn5RbykGr6XxWnBguHqbzmIqR/0a7Wvm9sQrSl8RbZqaaUIu9xajlLep9 SQrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=rhp8yviM; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id h13si4444073otk.213.2021.11.03.10.22.20 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 03 Nov 2021 10:22:20 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=rhp8yviM; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:38860 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1miJxr-00010V-WA for patch@linaro.org; Wed, 03 Nov 2021 13:22:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37380) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1miJpe-00017Q-F4 for qemu-devel@nongnu.org; Wed, 03 Nov 2021 13:13:50 -0400 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]:38498) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1miJpc-0007EG-D8 for qemu-devel@nongnu.org; Wed, 03 Nov 2021 13:13:50 -0400 Received: by mail-wr1-x432.google.com with SMTP id u18so4668449wrg.5 for ; Wed, 03 Nov 2021 10:13:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6L7V8FBbm3jTst1al+hCD3I4R6kwO4ndmzZB8XWsSP8=; b=rhp8yviM69pwVywInLctt4hyQJ8Aj9+VExCxKuJ27tPxX2y5SfSbir2S+WUFX/B/IR 4GqhWvdvbruJEj+HlzgddJ3A+ab9zmH4aT1qOv+GtAJzWtpBTcEZYlNunEt2Sl0A+QaQ IUuoC7s45JXZ+SVd+nxS3NEHv3i2H9hgYhlpuQCx4c2EBPnoIcrWJ340EJAIpocWmCI7 lCd6xgz9WC046kjJ5acl5dMGtpekcxPPlBh+VxBh0han6SIMAYWw7rbwJEGPAknXuTN7 M4P+bVdaN17fZgLNfnqSAMuCvvCioUVtiu3EHIRcujxmtErcKt/gkhn8jwSSelvu0LM4 3sCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6L7V8FBbm3jTst1al+hCD3I4R6kwO4ndmzZB8XWsSP8=; b=ek9esDxXCkE0THwQvu8dIqzTwKqQ4GNVOz2BZzSI76i3u0ouLezYzJ94bjxrtm+Zm9 Vd/WAAEgB2zi2kwQP788zn/TafDWX0sIBjIBbxN5Rn31dvF4ldiwnLBAdlgQZhRy5XPM CFiOVWf9eKtuV0ztcDfQxInrvPY8mZ5wEbxzTTzqvYAMtIxq4YGW8pNsCyJwmu7z7Ajq qmg3wwh5RKBxD0UYqzqSx6i7E5A5mE6AtEiNTmR85t1MWRw6APQnv97tx0RzLtgTtZFG h3v9swsaEDvRNZyyZ41cN596o0z+Up1zOw7tpKvhKXD52jMWfeD+Shql07i5q2fm/cos 1+gA== X-Gm-Message-State: AOAM530xGJTg5l7g7RTnxFbI0JuEGFYpFZqgX4DXYxQ0WHhuK2I22l+V GDdEPm+2hC/ojJ2pQws7CUeXyg== X-Received: by 2002:adf:f681:: with SMTP id v1mr36501976wrp.367.1635959626869; Wed, 03 Nov 2021 10:13:46 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id t1sm2769470wre.32.2021.11.03.10.13.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Nov 2021 10:13:46 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 597661FF96; Wed, 3 Nov 2021 17:13:45 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [RFC PATCH] tests/docker: force NOUSER=1 for base images Date: Wed, 3 Nov 2021 17:13:39 +0000 Message-Id: <20211103171339.721910-1-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x432.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Huth , richard.henderson@linaro.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , Willian Rampazzo , =?utf-8?q?Alex_Benn=C3=A9e?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" As base images are often used to build further images like toolchains ensure we don't add the local user by accident. The local user should only exist on local images and not anything that gets pushed up to the public registry. Reported-by: Richard Henderson Signed-off-by: Alex Bennée --- tests/docker/Makefile.include | 4 ++++ 1 file changed, 4 insertions(+) -- 2.30.2 diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index 5bbbaceed1..462a3758d7 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -150,6 +150,10 @@ docker-image-debian-sparc64-cross: docker-image-debian10 # The native build should never use the registry docker-image-debian-native: DOCKER_REGISTRY= +# base images should not add a local user +docker-image-debian10: NOUSER=1 +docker-image-debian11: NOUSER=1 + debian-toolchain-run = \ $(if $(NOCACHE), \ $(call quiet-command, \