Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D8BAAC433EF for ; Fri, 29 Apr 2022 13:04:01 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 55F7883EE6; Fri, 29 Apr 2022 15:03:59 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="Z45MyAU0"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1FFB383EEE; Fri, 29 Apr 2022 15:03:57 +0200 (CEST) Received: from mail-qv1-xf2e.google.com (mail-qv1-xf2e.google.com [IPv6:2607:f8b0:4864:20::f2e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 6460D81A02 for ; Fri, 29 Apr 2022 15:03:54 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qv1-xf2e.google.com with SMTP id b17so5256928qvf.12 for ; Fri, 29 Apr 2022 06:03:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:subject:message-id:mime-version:content-disposition; bh=ADuY0UQvX2u6/9+EdgEPfLZtMk6A/2H8W4BUsZLEqj4=; b=Z45MyAU05sx/Lpy5hVG66gobe+Io+2iJP5WEzX5gy0ceGXERkWXziui+C/9g9vcQ7Q npu7pgYuiRCydHUJ9ypnsigNPQ5eWduYe9YrXYtLizV9XzOA1YUxMQ9OysQFdNSTrgUq 9NOjxpGxNifvP20eOjO2MjVb/Y7jXbrciD4qQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition; bh=ADuY0UQvX2u6/9+EdgEPfLZtMk6A/2H8W4BUsZLEqj4=; b=LymfkG7YBk6KNCx0S9x4UxHkhWro166S9k8A5+Y1lN+UFN+pUcz17mhZmM5FZSBoFK UDI3kZKIW6YR6TzR4fdjsvaS6/TfIT3s5GKtjV7HYhHJNmhPfyNojCq1Q7KWo92pKZdf c0ODwwHSGm+hlm+Fjk4zBo+A6A4vgzT1pC+Rn3WHKbtrUBbWKulrI9mOlsS39e4zS37Y JiHs6qpI8AFTMptTZW1gSiWDowSp3/5Dmc+Wb0Ny7WjJ3xFpilMLxUA8jdpINLeIQjEE PGb1lIhHVuyNfQTDA/cbyKReRzv2EAorVP/hF0VXrRq6hKPGjB6TR/DJyXhN1FztAL8X gDzA== X-Gm-Message-State: AOAM530gKiEUeLhFua7alqiCUH6w/nnlWzqrk2AX8YGtxmpxbKNyDTjN NhGMSLSbz/vy0NZgtbjbgclzTO+XEwdECA== X-Google-Smtp-Source: ABdhPJwOrLm6gUEFq+HRTW/1xOumIh7uqWFeVoZavS1at81akrOn1pKxBu0Op96ZFotVCboT8k96HA== X-Received: by 2002:a05:6214:2301:b0:435:38af:2f87 with SMTP id gc1-20020a056214230100b0043538af2f87mr27860870qvb.83.1651237432703; Fri, 29 Apr 2022 06:03:52 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-4500-41c8-9db8-25be-eadf.res6.spectrum.com. [2603:6081:7b01:4500:41c8:9db8:25be:eadf]) by smtp.gmail.com with ESMTPSA id v22-20020a05622a189600b002f388bdd477sm1895033qtc.21.2022.04.29.06.03.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Apr 2022 06:03:52 -0700 (PDT) Date: Fri, 29 Apr 2022 09:03:50 -0400 From: Tom Rini To: u-boot@lists.denx.de Subject: root access and u-boot-test-hooks scripts Message-ID: <20220429130350.GO1182808@bill-the-cat> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="UFMLoheMaWcIEZAi" Content-Disposition: inline X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean --UFMLoheMaWcIEZAi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hey all, I'm looking for some feedback and ideas. Today, in our u-boot-test-hooks repository we have 2 cases that use sudo, imx_usb and L4T-based flashing. Other places that may require root access, such as mounting a filesystem instead assume an /etc/fstab entry exists and has "user" as one of the attributes. Locally, I've extended using "sudo" instead for further access, and so far have updated the rpi3_mount script to be like the flashair one and support all of the platforms (by naming u-boot.bin correctly for the platform) and I've got an easily re-usable ti-omap writer as well (ti-k3 is harder since you need to build two distinct U-Boots). Would people rather see more sudo use, or more /etc/fstab setup required? I'm happy to adjust what I've done to not use sudo and post that. --=20 Tom --UFMLoheMaWcIEZAi Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmJr4jMACgkQFHw5/5Y0 tyzVjgv/VAtapftcLLFRLRPHsp6CnEX6s8fDq3KWGhcXNxusJymfdyZSfwCj885t Hh6m7Pix0mdv9TJELxLqzwv/bl3GXs1VBo/8Qu9z9+Le2EPitzjWTP+a0ZlICrRm BfcLbIzf+MdtmHhQ+K2NLcA8pkzedCfc+Ln9MM9Tm7p5glzrsoyajci2w1owbSZ4 rFOG8L9PQJ+vm3xuj62JnKwJlKqfaag72daVDLO3db5F16PnDEJg6bX/1jgjsqUg BST/iwPje5Jmg9RGE798KyhspGlB9L3M2GeTzP9F1dZ0qlCiN5ilNd03wiFpdGqi Pl0W+CG1ZALeeDNrU8Zs41JE23oDjWceCWthn7i/f4o6JK5a2DN/EYBxhEran4NA GjRNnaeb10d/x/mEF40LCX/8FyRrmjsjj78Pn3Xth/G17ZJL8nw6bOr+VRYuU74b cCzler2z0uKb/WX3I77DRszqblctG/7SzSmipyvfI5idpK4DL1G4XLIF3BmFPdYQ rm9CBJA2 =6uZG -----END PGP SIGNATURE----- --UFMLoheMaWcIEZAi--