From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qv1-f41.google.com (mail-qv1-f41.google.com [209.85.219.41]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.25162.1796009045441968319 for ; Sun, 29 Nov 2026 19:24:05 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20260707 header.b=v6OH4nki; spf=pass (domain: gmail.com, ip: 209.85.219.41, mailfrom: bruce.ashfield@gmail.com) Received: by mail-qv1-f41.google.com with SMTP id 6a1803df08f44-921318b2eb8so125513926d6.1 for ; Sun, 29 Nov 2026 19:24:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796009044; x=1796613844; darn=lists.yoctoproject.org; h=mime-version:content-transfer-encoding:content-type:references :in-reply-to:subject:cc:to:from:date:message-id:from:to:cc:subject :date:message-id:reply-to:content-type; bh=4Siw3VdT0o8xDyt4YjDYSDssCzi5nhTihI/81SUhX6E=; b=v6OH4nkixxLKE8DVqTwFOKq/KXgM+2FNAL/Q/o3MjcIC/qYyKGHPNp3KUyJbBvaHL2 nxKr5ZZe6DIzUtEbUVq7T6sxdVQFQxba4aMEMRjDd7Bf2j1YO1mfumHa31SUpydPyoh6 FUvZw4qGX7HOD+TA3ilbH8Y6JnjDza0iTmT0rjTNxlNEfDBG/7V/Ck+km80eZMPVNeJ6 p3zK409OF+d7tNf/SjPL2qdZBD34qWmtbpukVic85TerwWt4ybSRtzMxMcb8J1rOE2+a kfXO+dqab50nHZOKZi1yANIQNCeh7sPQNKURfUpnVoZaf3DI602ZexxOggz02eK0oZEL q0NA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796009044; x=1796613844; h=mime-version:content-transfer-encoding:content-type:references :in-reply-to:subject:cc:to:from:date:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=4Siw3VdT0o8xDyt4YjDYSDssCzi5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IpkF7 77xtSRZmaDFN1cEhj49TdPgvIiCjH9YKnTkKks4rMXilMLYrsgiK9PlkWtjBcTCUZOyxS6a5QvP JB7eybHNzAQQuvhN0rfBUKxOD/6kYFie9Bs9wSeexPlZ3ENizpw== X-Received: by 2002:a05:6214:4018:b0:921:1a64:3a84 with SMTP id 6a1803df08f44-92134a8e8d6mr582185676d6.37.1796009044000; Sun, 29 Nov 2026 19:24:04 -0800 (PST) Return-Path: Received: from [127.0.1.1] (pool-174-112-34-35.cpe.net.cable.rogers.com. [174.112.34.35]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-921349d2322sm287893126d6.19.2026.11.29.19.24.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2026 19:24:03 -0800 (PST) Message-ID: <6b0cec53.bef3c80f.218fba.5e25@mx.google.com> Date: Sun, 29 Nov 2026 19:24:03 -0800 (PST) From: Bruce Ashfield To: Tanguy Raufflet Cc: meta-virtualization@lists.yoctoproject.org Subject: Re: [meta-virtualization][PATCH 1/2] image-oci: add OCI runtime bundle output In-Reply-To: <1294544681.753540.1795102531174.JavaMail.zimbra@savoirfairelinux.com> References: <20260930144705.64792-1-tanguy.raufflet@savoirfairelinux.com> <6abd3113.e51cd04b.1fe4c8.0684@mx.google.com> <1760387508.1766093.1791807841997.JavaMail.zimbra@savoirfairelinux.com> <6ada5b42.4bcc4235.70a25.8048@mx.google.com> <1074218742.1918618.1793711762503.JavaMail.zimbra@savoirfairelinux.com> <6afa820c.01036f89.11cd8a.6ff7@mx.google.com> <1294544681.753540.1795102531174.JavaMail.zimbra@savoirfairelinux.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Mon, 30 Nov 2026 03:24:14 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-virtualization/message/10201 > I've tested the OCI runtime bundle support on master-next with our ISMS > container. This is really nice! I was able to reproduce our existing > runtime configuration easily using the new variables. Great to hear, thanks for testing it. > The only issue I've found so far concerns rootfs ownership when using > UID/GID mappings. For example, with: > > OCI_RUNTIME_UID_MAPPINGS = "0:231072:65536" > OCI_RUNTIME_GID_MAPPINGS = "0:231072:65536" > > The generated config.json contains the correct mappings, but files such > as rootfs/etc/passwd are archived with ownership 0:0, whereas I would > expect 231072:231072 to match the configured mappings. Agreed, that's a bug. The runtime doesn't change the rootfs owners, so with the mappings set the files have to be owned by the host ids. The fix shifts the owners through the mappings in config.json when the bundle is archived, so with your values root's files are 231072:231072 and a uid 1000 file is 232072. A file owned by an id outside the mappings is now a build error rather than a file the container can't use. It's on master-next now as "image-oci: own the bundle rootfs by the mapped host ids" .. let me know if it works with the ISMS container. Bruce