Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1617422lqa; Mon, 29 Apr 2024 13:53:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX6/iPKvuFPS2zxWF2MN7Psu8Npuc03k4YbqmE2G8QkJ87IaMWLPcn4IlEyqHmdWIi8Dwa5HhDigGqexDF/pOsXCbP7zLCVvJHkcHIBLw== X-Google-Smtp-Source: AGHT+IH678YKSCdT5pPJorEVq4/bBAmkTbr9xzPx6CPEehnso1w9ejRkjFHONlwLY9XrWCZ6fhwz X-Received: by 2002:a05:690c:7448:b0:618:92bd:9334 with SMTP id ju8-20020a05690c744800b0061892bd9334mr8504277ywb.43.1714423983607; Mon, 29 Apr 2024 13:53:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714423983; cv=pass; d=google.com; s=arc-20160816; b=h8yzWaVIspSpB+VnZP5YKUtwlX7eMMktq1g8pCxc0Rd0BPt5LD+n0RhVOxXo3FBCIl UC4pOJYgf8/ZhnjClkJ6E5PWcNMJFzGyng5YDuu0bmdavkUHuNKGyps63lr13jv9qQbk 3GU6Q1Y/rFDtMey6CV+Y543ahXPlS4OFDt8++6RfDJrmpESNlvJ0LOTlHADxtyNO+Ics //MT5x5lXvZbivxl4s31TmNHzjTyvwpLDze91BqvTDINMnwCfQfLPIMBU800EsBvG99C djo2qq59FmwX9Y/6w4uqYgF45jGGo99m3Et+dmPjo313W3HHVD/T32z7bgfxnGHedozt 95EQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :dkim-signature; bh=eS9bDnNYR0i7bDleN6uI0tYnAF3Eg0gr8512SJl4Pd8=; fh=SNQ7nfYGC7sNHUkWO36iQa2o6g8CraotwnmseN9FB+o=; b=PQ21kXhCwrFLUYEnKvt4g57/eqOQpXhuv6N5haJsbe47WXgucQwLzXY6oLhghkDSpe iqTxetcgykpFnt2nqdsnchP4Sg0OJMmWOno0hLSOJerM3sAcJwWyVzLhS9RjlXWZ4g3J LHAgSDzPk9WRfsU3/qYc+qS3FHqwIRuPEVqGCg+qhAGaa7/rkitvhGhhU4ZHbGOGXZHv F6Idx3EFu9cdvdzSCwHDx1eAlWxZ/jg24ISkHLJyZdXGV21PKDb6a3XFtaWDPDcpI3ZM h/Z/fAUWb+B5ndb51HQImzhgclW9LvycoWEN7D+SvnYCFbVKOwIA+V2Xgj+rKQV0AkLs qIzQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=FZpvgPwX; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-163029-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163029-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id c12-20020ac85a8c000000b0043ae8daf666si3451609qtc.669.2024.04.29.13.53.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 13:53:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-163029-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=FZpvgPwX; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-163029-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163029-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 4F47D1C21A69 for ; Mon, 29 Apr 2024 20:53:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8023E178CC3; Mon, 29 Apr 2024 20:52:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="FZpvgPwX" Received: from mail-pj1-f74.google.com (mail-pj1-f74.google.com [209.85.216.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 83BD41411EF for ; Mon, 29 Apr 2024 20:52:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714423976; cv=none; b=hIuDHCx3xGshtdl0Lh6zRYAzbSTmNt+v6LhJ8Z4/XpoEfv367PFtAEDONzRAJJ0fXVLA5mx7wnV6ZUrsrY2nFDjHCiexFDrvNCfxuUFiOeOqNe9Ii8C/uDz1o+0i1SYV8s/WYibfHD7UVGNruMn2+ytr8IHuOm8KdVVsi30V6eU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714423976; c=relaxed/simple; bh=UpUN2rwjLf659AcafVLpWvlNcu6x9dCG2IlXIBX+s+g=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=q1t0Brn+AbslxwwrGC4HQWntnFR0Y1VPHxd7I/0CcAUzXon5mn/0zkzKTSTOAxQNXZGQD4IvBlm5er/ZROf26dQ59GnZNKgMgM5+kLFedduyjYwch2xikzl8oDgje+A7b8rGX72q7OBWFSD6YvttoKgS6+DFqwl9xNrXctlsNAg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=FZpvgPwX; arc=none smtp.client-ip=209.85.216.74 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com Received: by mail-pj1-f74.google.com with SMTP id 98e67ed59e1d1-2a2c2b0d82aso5610948a91.3 for ; Mon, 29 Apr 2024 13:52:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1714423975; x=1715028775; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=eS9bDnNYR0i7bDleN6uI0tYnAF3Eg0gr8512SJl4Pd8=; b=FZpvgPwXbXXuDcfyLHBbSuaef+BKOURxur3wgh6OI+1W4o1zCGgHmbcRXMN9qdizhN X6ohK1kP+0v3wEUw6yo4pAnCpVcSQA9SCk+L8gkbjzaKcybEB77cYP7AXWGq5dUtgGLQ Yd/gPGTUqmYK83HqcYdgqPrQWAOkdMFZm0HP2hC0HPFoJainGSvQHwvhKZKI+QPRG0QX 1hg+y9L6X4BshqYEzjY549fJinuH13aTfNG0UIg9IzoF+TnJyL6uEJqhPBVrwFp8uNOU DLMOFFu05qTiOFiA3sFTsWsPtyrLwstOZ2dDWKK5RV2djLaeOcye9z4EHwNQLGaV7gcZ xd5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714423975; x=1715028775; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=eS9bDnNYR0i7bDleN6uI0tYnAF3Eg0gr8512SJl4Pd8=; b=SGTKW67emslHki2blsffZVpcyLIsfGhtcNy7vAca7UjoR+fby+0rsjdJzNgMZ03aZ1 JyAmOkdaOesGO3xA8wAlBhJ89gISZsS3eZVr96fLlr0I5mBNw6AxqaHGXxgzHCC1+fcd 84EOSQ+8pEQn8MDczNshSiN7gHgF/n0r4ay6wHWhhA/gptTftuxXqolPKZsqgT6n/RRm QBD1vXZvwSwLIBU/+CnQpEML6w3/zsrPEtUrw2H+nitUaWfEAJXuK7L9RpOknwtbmMK/ +XpN3KrrOgNeZY89mR0x8Wy85B4aSg/SzrQEQWS6PC/hirZ5w8W5ZvrEyeNKnHfTOoz4 ajmA== X-Forwarded-Encrypted: i=1; AJvYcCVsfSoZtdBDs8Wcp3VH8gRPvdsUjs2lVMIz7qGkHODUlDboFuzUH7hr0mXkgq4Z5etExrv5OdcvQrlVneUXwLGsvBFOvWySYC7s6cbo X-Gm-Message-State: AOJu0YzVXJu6miM1Tnvp11IZ2w5gR2uXw3hNUfn1ARJZ+t+cZyxSD/nQ vjvFN5/OQ5Ne4cCtbqxeUw33Ip/vntGqa9kLJVrJmCj4+1p26xW36F5vhwk2fsSVGsZGb+l0oJy smA== X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a17:90a:4617:b0:2b1:6447:32df with SMTP id w23-20020a17090a461700b002b1644732dfmr14064pjg.4.1714423974848; Mon, 29 Apr 2024 13:52:54 -0700 (PDT) Date: Mon, 29 Apr 2024 13:45:19 -0700 In-Reply-To: <20240415-kvm-selftests-no-sudo-v1-1-95153ad5f470@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240415-kvm-selftests-no-sudo-v1-1-95153ad5f470@google.com> X-Mailer: git-send-email 2.44.0.769.g3c40516874-goog Message-ID: <171441964028.77008.6546831449113890396.b4-ty@google.com> Subject: Re: [PATCH] KVM: selftests: Avoid assuming "sudo" exists From: Sean Christopherson To: Sean Christopherson , Paolo Bonzini , Shuah Khan , Brendan Jackman Cc: kvm@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" On Mon, 15 Apr 2024 14:43:54 +0000, Brendan Jackman wrote: > I ran into a failure running this test on a minimal rootfs. > > Can be fixed by just skipping the "sudo" in case we are already root. Applied to kvm-x86 selftests, thanks! [1/1] KVM: selftests: Avoid assuming "sudo" exists https://github.com/kvm-x86/linux/commit/0540193614eb -- https://github.com/kvm-x86/linux/tree/next