public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Zhihang Wei <wzh@ilbers.de>
To: "MOESSBAUER, Felix" <felix.moessbauer@siemens.com>,
	"isar-users@googlegroups.com" <isar-users@googlegroups.com>
Cc: "Kiszka, Jan" <jan.kiszka@siemens.com>,
	"Gylstorff, Quirin" <quirin.gylstorff@siemens.com>
Subject: Re: [PATCH v3 00/16] add support to build isar unprivileged
Date: Fri, 29 May 2026 16:03:02 +0200	[thread overview]
Message-ID: <5b55371c-825d-4ab2-aaa5-fd55733c34fe@ilbers.de> (raw)
In-Reply-To: <bdc61fdf418877bb36ecca901a1c234e4d7c349e.camel@siemens.com>


On 5/29/26 15:07, MOESSBAUER, Felix wrote:
> On Fri, 2026-05-29 at 14:28 +0200, Zhihang Wei wrote:
>> On 5/26/26 11:43, 'MOESSBAUER, Felix' via isar-users wrote:
>>> On Tue, 2026-04-07 at 16:22 +0200, Felix Moessbauer wrote:
>>>> Dear isar-users,
>>>>
>>>> currently isar requires password-less sudo and an environment
>>>> where mounting file systems is possible. This has proven problematic
>>>> for security reasons, both when running in a privileged container or
>>>> locally.
>>>>
>>>> To solve this, we implement fully rootless builds that rely on the
>>>> unshare syscall which allows us to avoid sudo and instead operate in
>>>> temporary kernel namespaces as a user that is just privileged within
>>>> that namespace. This comes with some challenges regarding the handling
>>>> of mounts (they are cleared when leaving the namespace), as well as
>>>> cross namespace deployments (the outer user might not be able to access
>>>> the inner data). For that, we rework the handling of mounts and artifact
>>>> passing to make it compatible with both chroot modes (schroot and
>>>> unshare).
>>> Any news on this one? Do you want me to send a rebase? I did not
>>> receive any objections regarding the proposed interface on the kas
>>> side. By that, I would like to move forward with this.
>>>
>>> I'm also fine with scheduling this behind the testsuite execution
>>> series ("Improve testsuite executability, basic GitHub CI"), as this
>>> significantly simplifies testing.
>>>
>>> Just let me know.
>>>
>>> Best regards,
>>> Felix
>> Hi Felix,
>>
>> We were testing this patch on downstreams and in CI. Tests on
>> downstreams seem
>> fine.
> Hi, that's good to know. The corresponding kas patches are now also
> rebased and will be added to kas:next soon [1]
>
> [1] https://groups.google.com/g/kas-devel/c/ibWQT0-FtCg
>

That's good to know.

>> One issue did show up on CI. "InitRdCrossTests.test_dracut_in_image" in full
>> failed. (There are two test cases named as test_dracut_in_image, one in
>> fast,
>> one in full).
>>
>> Specifically, the built image isar-image-ci-debian-bookworm-qemuarm64
>> does not
>> boot. I found nothing was added into the initrd. The generated initrd
>> image has
>> a size of zero bytes.
> I'll have a look. Thanks for the detailed report. Just for
> clarification: Does this fail under rootless or default / root?
It's under default root.

Zhihang

-- 
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/5b55371c-825d-4ab2-aaa5-fd55733c34fe%40ilbers.de.

      reply	other threads:[~2026-05-29 14:03 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-07 14:22 'Felix Moessbauer' via isar-users
2026-04-07 14:22 ` [PATCH v3 01/16] refactor bootstrap: store rootfs tar with user permissions 'Felix Moessbauer' via isar-users
2026-04-07 14:22 ` [PATCH v3 02/16] deb-dl-dir: export without root privileges 'Felix Moessbauer' via isar-users
2026-04-07 14:22 ` [PATCH v3 03/16] download debs without locking 'Felix Moessbauer' via isar-users
2026-04-07 14:22 ` [PATCH v3 04/16] introduce wrappers for privileged execution 'Felix Moessbauer' via isar-users
2026-04-07 14:22 ` [PATCH v3 05/16] bootstrap: move cleanup trap to function 'Felix Moessbauer' via isar-users
2026-04-07 14:23 ` [PATCH v3 06/16] rootfs: rework sstate caching of rootfs artifact 'Felix Moessbauer' via isar-users
2026-04-07 14:23 ` [PATCH v3 07/16] rootfs_generate_initramfs: rework deployment to avoid chowning 'Felix Moessbauer' via isar-users
2026-06-01  7:03   ` 'MOESSBAUER, Felix' via isar-users
2026-04-07 14:23 ` [PATCH v3 08/16] use bitbake function to generate mounting scripts 'Felix Moessbauer' via isar-users
2026-04-07 14:23 ` [PATCH v3 09/16] apt-fetcher: prepare for chroot specific fetching 'Felix Moessbauer' via isar-users
2026-04-07 14:23 ` [PATCH v3 10/16] add support for fully rootless builds 'Felix Moessbauer' via isar-users
2026-04-07 14:23 ` [PATCH v3 11/16] add helper script to clean artifacts in build dir 'Felix Moessbauer' via isar-users
2026-04-07 14:23 ` [PATCH v3 12/16] apt-fetcher: implement support for unshare backend 'Felix Moessbauer' via isar-users
2026-04-07 14:23 ` [PATCH v3 13/16] dpkg-source: implement multiarch " 'Felix Moessbauer' via isar-users
2026-04-07 14:23 ` [PATCH v3 14/16] use copy of sbom-chroot for sbom creation 'Felix Moessbauer' via isar-users
2026-04-07 14:23 ` [PATCH v3 15/16] add support for devshell on unshare backend 'Felix Moessbauer' via isar-users
2026-04-07 14:23 ` [PATCH v3 16/16] testsuite: add parameter to run tests in rootless mode 'Felix Moessbauer' via isar-users
2026-05-26  9:43 ` [PATCH v3 00/16] add support to build isar unprivileged 'MOESSBAUER, Felix' via isar-users
2026-05-29 12:28   ` Zhihang Wei
2026-05-29 13:07     ` 'MOESSBAUER, Felix' via isar-users
2026-05-29 14:03       ` Zhihang Wei [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5b55371c-825d-4ab2-aaa5-fd55733c34fe@ilbers.de \
    --to=wzh@ilbers.de \
    --cc=felix.moessbauer@siemens.com \
    --cc=isar-users@googlegroups.com \
    --cc=jan.kiszka@siemens.com \
    --cc=quirin.gylstorff@siemens.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox