From patchwork Tue Nov 16 16:25:09 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: 519204 Delivered-To: patch@linaro.org Received: by 2002:ac0:c605:0:0:0:0:0 with SMTP id p5csp7367908imj; Tue, 16 Nov 2021 08:30:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJzcoLN5tbkgQ7r2pF36u4OszKNHtoHq2cE/NpvkzrXr1wyVVKLkg/xb34hCqYsmtwSC0ZV3 X-Received: by 2002:ad4:4246:: with SMTP id l6mr46737524qvq.65.1637080209951; Tue, 16 Nov 2021 08:30:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1637080209; cv=none; d=google.com; s=arc-20160816; b=q0r9UNfm5j+Y50+3ITFi4TuuDl08R3vJTKJaCgnf8AoEm/rxIhAjnqnyUUXCWuY79Q PLqq9m6F9ggzDn+0+FR5wllsm/CLFBuiA/qbPDP+UVJBHP/HyndqQ2SYTAuT6+z9OEG7 AyFLCkgNSLQ/lFxkVtoRF4+q/4MrtQX5ii/kBGTbh2d31YjGPFE9c/wxFkKmHBzRAJ3+ Sx2jJQNh2rpKMvqdiUmy85RY224L/0EWbVgY3jH3OJuQ5B9NAQqFjgpr6Ig5dMN2jxM4 J5KEwt/N4AxTaa8sgC7WmaWgFG6SXM1uYwPl0t0WNc5vIlSap+hXHvu+otcBADX55YcD /dFg== 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:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=OFTQIJHmHLwhfupY0wZqpFqclRFbQp8X+erMaavnLPE=; b=q5/Auw9pLXpj9hnw5WQl1iTgp6rdXU7u6wvCZE+tJZQvrZzszWVgmyyr2ckLm39fJI 8wgUrX4RUEDLQoHJjbQW67NQmOpRdSsktILplSDf3hAU3J2IxtLDwOGn1ZWsZbi7D5MB SsAn4oFcM0irORyB6PDBsaH4PNSOCtGtzsXG/KqBZFOs9q7rUVQy8OOjz/n99hoBDJdf Jeu4L0H5wOD4uk28zITLFcC8imnDVlLwTInurbQ4BTBOEfveTHdLHck6UeH0WS7eTjvW Mn4j3wok/ZOR7/rBt4VDlVH6uAjWXz0qgxiQLX/GrJ9HlDjFsUhmsBrD/WOCsECbDQq5 aDRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=qTbSq95S; 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 v17si27148688qtw.358.2021.11.16.08.30.09 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 16 Nov 2021 08:30:09 -0800 (PST) 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=qTbSq95S; 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]:47842 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mn1LV-0001nc-Dy for patch@linaro.org; Tue, 16 Nov 2021 11:30:09 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51772) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mn1Gr-0004TM-Pu for qemu-devel@nongnu.org; Tue, 16 Nov 2021 11:25:21 -0500 Received: from [2a00:1450:4864:20::42d] (port=40578 helo=mail-wr1-x42d.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mn1Gp-0004Bn-US for qemu-devel@nongnu.org; Tue, 16 Nov 2021 11:25:21 -0500 Received: by mail-wr1-x42d.google.com with SMTP id r8so38620424wra.7 for ; Tue, 16 Nov 2021 08:25:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=OFTQIJHmHLwhfupY0wZqpFqclRFbQp8X+erMaavnLPE=; b=qTbSq95Si4Vp90sc3zO4JVcirSDM2SZTdOLysEWG+Vt7XBgrhGwwFZL/nwQBQlC2OX JmTd7/d+EIpLwCpUIOkaw/rAU4EX1CAL13NWJQ8HhAPsA6Wazd68OhqGGfAy1WOPNRMK mK/Q7//Y8IyNtpAgpJDVSqDhAilKRT1iiCbIjfX+3Y29k9dRaqO+7EUkP/kw1y1YHZuh 28/XNi/QhZTU8dayz2A0OgKKaZ22nkRbqqPUZS+VMFC7VNpLZ1PBf1MAkEMWyEa4HpZP 8i/m2rG0KdGG8AoZDEiw8YLdLLH1DWK2SQLIseGmNPiAKgyjrI/tBGmyhBKpBQMSS0OF FOGw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=OFTQIJHmHLwhfupY0wZqpFqclRFbQp8X+erMaavnLPE=; b=0J3DDM56NzHQRBqrvxxkAwbQUv91sF4yJdU+y9goYfrQl8Xw2edST+63trZW7ODtP+ eWISQ2ZmytoU1ECPg4hsU4TRTqa+ydoAN1zQwXl1yqZ6FaSDb0VHQ563r+JFMQzMVanR dxqaNYLgEuJVcp/c1AwaInE0VUBEnUHnUDv6cO8FoyVKmkccXKM/Ka+TT4g5TOOMpIbV hegmaVMdsXJpyBznYud979rpnVRSx3kGq+Hf4hxyTryYwP61heTYwnrPboYV8x87qe8E dZJ9uvSeQZdhhJdVhhtenR2Wo4N14YvFjpPopiTW5rJXNUcSlQmnrGDl+zZH5xpaKLF4 39yw== X-Gm-Message-State: AOAM533isF4/V2TEFCW/Im7/i6A9Bgv7Qj5OfDjIGYv6OXMR8gqflukj de+PVf7GFuRnEunCPugjS47uMg== X-Received: by 2002:adf:fa0b:: with SMTP id m11mr10785454wrr.152.1637079917688; Tue, 16 Nov 2021 08:25:17 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id g13sm2706061wmk.37.2021.11.16.08.25.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Nov 2021 08:25:16 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 6BBD51FF98; Tue, 16 Nov 2021 16:25:15 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: richard.henderson@linaro.org Subject: [PULL 1/7] tests/docker: force NOUSER=1 for base images Date: Tue, 16 Nov 2021 16:25:09 +0000 Message-Id: <20211116162515.4100231-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211116162515.4100231-1-alex.bennee@linaro.org> References: <20211116162515.4100231-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::42d (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42d.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: peter.maydell@linaro.org, Thomas Huth , qemu-devel@nongnu.org, Wainer dos Santos Moschetta , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , 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 Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20211115142915.3797652-2-alex.bennee@linaro.org> diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index 7a63a3b7f7..f1a0c5db7a 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -150,6 +150,9 @@ 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 # # The build rule for hexagon-cross is special in so far for most of