All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gyorgy Sarvari <skandigraun@gmail.com>
To: landervanloock@gmail.com, yocto@lists.yoctoproject.org
Subject: Re: [yocto] Btrfs root filesystem permission issue
Date: Sat, 1 Mar 2025 18:05:19 +0100	[thread overview]
Message-ID: <cc0e95c4-8411-4ec8-abb0-61378d978c87@gmail.com> (raw)
In-Reply-To: <4647.1740844594426429510@lists.yoctoproject.org>

On 01.03.25 16:56, Lander0606 via Lists.Yoctoproject.Org wrote:
> Thanks for your response!
>  
> I did have a look at the pseudo and btrfs-progs repository and noticed
> that the pseudo repository contains the following code in
> ./ports/unix/guts/ for the nftw() system call:
>  
> rc = real_nftw(path, fn, nopenfd, flag);
>  
> So, it seems that the wrapper for the nftw() system call just forwards
> it to the underlying system (the host, right?). Is that the reason why
> the btrfs filesystem creation does work, but files are owned by the
> build host user?
> I'm guessing there need to be some code around it to support the "fake
> root environment" that pseudo is trying to achieve?
Yes, pretty much. I don't know from the top of my head if the
ports/unix/* files are used in Linux env at all, but regardless, your
understanding looks correct to me and I think you summarized the issue
pretty well.


  reply	other threads:[~2025-03-01 17:05 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-27 18:57 Btrfs root filesystem permission issue Lander0606
2025-03-01 14:35 ` [yocto] " Gyorgy Sarvari
2025-03-01 15:56   ` Lander0606
2025-03-01 17:05     ` Gyorgy Sarvari [this message]
2025-03-01 18:32       ` Lander0606
2025-03-03 12:08         ` Gyorgy Sarvari
2025-03-03 21:52           ` Lander0606
2025-03-03 21:57             ` Gyorgy Sarvari
2025-03-03 22:05               ` Lander0606
2025-03-04  0:14                 ` Lander0606
2025-04-24 20:18   ` Ferry Toth
2025-04-25  6:21     ` Gyorgy Sarvari

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=cc0e95c4-8411-4ec8-abb0-61378d978c87@gmail.com \
    --to=skandigraun@gmail.com \
    --cc=landervanloock@gmail.com \
    --cc=yocto@lists.yoctoproject.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.