From nobody Tue Feb 10 20:14:39 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1523389687552213.61452964772673; Tue, 10 Apr 2018 12:48:07 -0700 (PDT) Received: from localhost ([::1]:39822 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f5zFM-0007LP-J3 for importer@patchew.org; Tue, 10 Apr 2018 15:48:04 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46608) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f5z73-00009g-An for qemu-devel@nongnu.org; Tue, 10 Apr 2018 15:39:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f5z72-0006K9-Cr for qemu-devel@nongnu.org; Tue, 10 Apr 2018 15:39:29 -0400 Received: from mail-wr0-x243.google.com ([2a00:1450:400c:c0c::243]:36344) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f5z72-0006JY-5Y for qemu-devel@nongnu.org; Tue, 10 Apr 2018 15:39:28 -0400 Received: by mail-wr0-x243.google.com with SMTP id y55so13941448wry.3 for ; Tue, 10 Apr 2018 12:39:28 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id n49sm5619919wrn.50.2018.04.10.12.39.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Apr 2018 12:39:24 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id E33233E0980; Tue, 10 Apr 2018 20:39:19 +0100 (BST) 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=Iw14EL8gDRYNwQzOxg4iHZWWM4zbBhJGAZoJ6ohcpmA=; b=UGkxSl452DI+qQaH7RacXkm4cqA1i0f03x2/CxTevj6u4igE3npW6QTP+oS+d82BIv vYfAFb/7x5oTykBzIuOGStVUp5QbwnWXFsJiIgdU8adj9oBF66ezoLseCqIUS9PPLNrV U88PqXEakBigNud7x9MgEfRmuksjHgnDUAWos= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Iw14EL8gDRYNwQzOxg4iHZWWM4zbBhJGAZoJ6ohcpmA=; b=IcEMl5bDFii1klNWSGhazezxcEevDOghBkKgJKmDc02FwDYsp9W7WBoRGMkZO9dBid rVrtlKxfq1Wx7a9p2d3EXjUL2auUeNsCiY33NHd2osDbtLsRAPOu3lWwEN8dCsdMa1sI nbsdcwELsGY6DhwtrLUfbF+NYb+LMA0Bw6lLoT6D2a0Bq/blkbIdbNJGPApCVnEXu4If DgIFv5he7dZXCdAm+boeBpVEBiohDf2JOwf8sg6mk5tT8Y+nWyR0ZTuwHsBWhHv6w3Nh vjmG830QBTfL73LcavmYqGh6t+ZOLe8BzNnG7oA4rvm+KT0FHOShbFzeGhNo2Ush2vQ6 RqPA== X-Gm-Message-State: ALQs6tBJgpLN9ZSveoik0iA3ZLWyfftVf6SnzVaDtKBNOsKU+DfpMqap phaZFB6BCOeQf2yB4NYFVIVk9w== X-Google-Smtp-Source: AIpwx4/WZst1MhFOYSEnhuoO6PUKPUQZnWmUqhVhUTQzXtvLx4NUev+kxY4pPzXYR/wuzZ73n1YqVw== X-Received: by 10.223.224.141 with SMTP id c13mr1370645wri.88.1523389167089; Tue, 10 Apr 2018 12:39:27 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Tue, 10 Apr 2018 20:39:02 +0100 Message-Id: <20180410193919.28026-8-alex.bennee@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180410193919.28026-1-alex.bennee@linaro.org> References: <20180410193919.28026-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::243 Subject: [Qemu-devel] [PATCH v1 07/24] docker: allow "cc" command to run in user context X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , famz@redhat.com, cota@braap.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Fam Zheng Reviewed-by: Philippe Mathieu-Daud=C3=A9 Tested-by: Philippe Mathieu-Daud=C3=A9 --- tests/docker/docker.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/docker/docker.py b/tests/docker/docker.py index 9444f4bea4..f79213044d 100755 --- a/tests/docker/docker.py +++ b/tests/docker/docker.py @@ -399,6 +399,8 @@ class CcCommand(SubCommand): help=3D"The docker image in which to run cc") parser.add_argument("--cc", help=3D"The compiler executable to call") + parser.add_argument("--user", + help=3D"The user-id to run under") parser.add_argument("--source-path", "-s", nargs=3D"*", dest=3D"pa= ths", help=3D"""Extra paths to (ro) mount into conta= iner for reading sources""") @@ -414,6 +416,9 @@ class CcCommand(SubCommand): for p in args.paths: cmd +=3D ["-v", "%s:%s:ro,z" % (p, p)] =20 + if args.user: + cmd +=3D ["-u", args.user] + cmd +=3D [args.image] =20 # The compile command we are running --=20 2.16.2