From nobody Mon Apr 22 16:25:25 2024 X-Original-To: hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VNVwQ1J2Yz5HQ7n for ; Mon, 22 Apr 2024 16:25:26 +0000 (UTC) (envelope-from brooks@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VNVwQ0pDVz49dT; Mon, 22 Apr 2024 16:25:26 +0000 (UTC) (envelope-from brooks@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713803126; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=2QmdfZm7nnXqC12aZiT5509QcPkuPu2Hzzmjmmc0Iis=; b=FH5j/XpYffuzbWXb5fLb+8AXF4MOvExOAbL+sABME2e0byGGYfQWjwP+lnsORpqRGbFRzp KkL2dFNyGVIMFkSwebiOYaNcziRhuMuwhKw0m+jT4CGJS9vZ9EtlOlBQkllixEgMd1c1tv wFvI9uBEisqYBNzFsACuWgAFKobnTZV4DQyIboDu6QmD9eqPyz9QaNyhhAokzwqm3TqE5h YFpkkyO5YKOLXuY7i7vquF4T7kiuiKscU31NWg2MWyEeLK0yTLu/bid2nEt0mKKXsuSSkY QVTzaTc0Am4qK+t+ogqmTHiyEUxP6DI3RB7Cx6lEPhLeIh3+hpa08F7IHmk26g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713803126; a=rsa-sha256; cv=none; b=Qr2xhqZNcbPIOW6TasLx0KyRRuwm1Nt7Ds/alcZwKo01ckDjjiJikzyvlTlCGAZ5KrpKNX pqYaAsILx7NB87Ht4SIbGjLhqol2ISj5hYi0EA3J0eEPS2sd5S5x0MymCLSec01oXx90RS Vp6mRxkHNSZFXK+fHcP7/wE5a2x3vlnu4mTuvKbpRRow3G3z79wK6iGFs6bP1+IX7qTWsX oRRVjWOKw/K12d8yXoK1e0vY4C+rfx7Pod6wQI0uRaaup6dpxyfD4kHNNOo7doM20eej+l GVq19eyxnkXtMWvCNyScVc138uwupFFVOeoj1S/pkuc9V60zthcpmV4hO6KJlw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713803126; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=2QmdfZm7nnXqC12aZiT5509QcPkuPu2Hzzmjmmc0Iis=; b=CS6pdveB7x1cFyVfe2AfiqSJddlVRNiYFNlyZl59bNR0pTl9EW1L5CEdsE0GbqE3sKcsDl jfsX5wSVzKQx8e2LvWSq2ulTU7J8mt81vO45NSPEXzXfi7G61e6SoiuUO7KZfRuH60PPax 7vMZlyZKFu2MiWv9RsDFqXPnCcbf0RU4wXYVStuJGz6q16NvRRht2IMYuGmOHf5+lpIg6o Y8F3EB9vXCkLR8ptt/c29aRpX254odwQ5Q9C7Dwrz5MVAdAM63o9bNN7WEFBoUY+9fxBAL EWcbBU7nNjizAd3DKCmY3XyN2Opa0oRPq03KgKuiPp3RPu7qJ3VW267X1A4QlQ== Received: from spindle.one-eyed-alien.net (spindle.one-eyed-alien.net [199.48.129.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: brooks/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4VNVwQ09R0z1PKx; Mon, 22 Apr 2024 16:25:25 +0000 (UTC) (envelope-from brooks@freebsd.org) Received: by spindle.one-eyed-alien.net (Postfix, from userid 3001) id 4582D3C019B; Mon, 22 Apr 2024 16:25:25 +0000 (UTC) Date: Mon, 22 Apr 2024 16:25:25 +0000 From: Brooks Davis To: Lexi Winter Cc: hackers@freebsd.org Subject: Re: building memstick without root Message-ID: References: List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Sun, Apr 21, 2024 at 07:45:22PM +0100, Lexi Winter wrote: > hello, > > is it expected that running 'make -C release memstick' requires root? > the build fails for me with: > > install: /src/obj/src/freebsd/src/main/riscv.riscv64/release/dist/kernel/boot/kernel/kernel: chown/chgrp: Operation not permitted > > as i understand it, makefs should be able to build images as a non-root > user using mtree, but i'm not sure if this is hooked up to the build > system, or if i'm doing something else wrong - maybe i need a > make.conf/src.conf option set? You'll need to define NO_ROOT. I think that's sufficent, but I'm not 100% certain. We build CheriBSD releases without root on Linux hosts. -- Brooks