public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Henning Schild <henning.schild@siemens.com>
To: "[ext] Quirin Gylstorff" <quirin.gylstorff@siemens.com>
Cc: <isar-users@googlegroups.com>
Subject: Re: fakechroot
Date: Tue, 17 Sep 2019 11:22:22 +0200	[thread overview]
Message-ID: <20190917112222.2adebb06@md1za8fc.ad001.siemens.net> (raw)
In-Reply-To: <45b92ae7-08a1-3312-27ae-296b48f3517b@siemens.com>

Am Mon, 16 Sep 2019 10:38:44 +0200
schrieb "[ext] Quirin Gylstorff" <quirin.gylstorff@siemens.com>:

> On 9/13/19 2:11 PM, Baurzhan Ismagulov wrote:
> > On Fri, Sep 13, 2019 at 12:57:45PM +0200, Quirin Gylstorff wrote:  
> >> fakechroot, fakeroot and pseudo are all using a similar mechanism
> >> by modifying the LD_PRELOAD_PATH with there own Libraries and
> >> abstracting the necessary systemcalls. pseudo uses a sqlite
> >> Database to get a persistent view on the topic.  
> 
> 
> > 
> > Thanks, the persistent view was my actual question. I think we
> > should be looking at pseudo, since the tools without persistency
> > aren't going to work for our use case. Or do you see a possibility
> > for fakechroot fakeroot? 
> 
> 
> If using fakeroot and fakechroot, debootstrap knows it is running in
> a fakeroot and adapts itself to this environment. From the previous
> test with pseudo it does not do that for pseudo[1].
> 
> I did not test of pseudo runs with --variant=fakeroot.
> 
> [1] 
> https://groups.google.com/forum/#!msg/isar-users/WV0N4X2ZZMo/4EQI3c1wBQAJ

Debootstrap is just one "problem", and i think we had that running
without a privileged container or "root".

A full build involves potentially setting binfmt and running wic, which
brings in a lot of tools (filesystems, partitions, bootloaders). OE
knows them as "wtools_sysroot" and builds them with dynamic linking
(for the LD_PRELOAD trick).
But we use the ones from our target distro in buildchroot, and guess
what, they are essential system tools that are statically linked. So no
LD-messing with them ...

Lowering the privileges for some steps (like debootstrap) might be a
good idea, but i still do not see how to do a full Isar build without
root.

Henning

> > With kind regards,
> > Baurzhan.
> >   
> 
> Kind regards
> Quirin
> 


      reply	other threads:[~2019-09-17  9:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-13  8:00 fakechroot Quirin Gylstorff
2019-09-13  8:14 ` fakechroot Baurzhan Ismagulov
     [not found]   ` <8db6f5f1-8a36-768c-1b5d-0a0a3df866fb@siemens.com>
2019-09-13  9:33     ` fakechroot Baurzhan Ismagulov
2019-09-13  9:41       ` fakechroot Jan Kiszka
2019-09-13  9:51         ` fakechroot Baurzhan Ismagulov
2019-09-17  9:14         ` fakechroot Henning Schild
2019-09-17  9:52           ` fakechroot Jan Kiszka
2019-09-13 10:57       ` fakechroot Quirin Gylstorff
2019-09-13 12:11         ` fakechroot Baurzhan Ismagulov
2019-09-16  8:38           ` fakechroot Quirin Gylstorff
2019-09-17  9:22             ` Henning Schild [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=20190917112222.2adebb06@md1za8fc.ad001.siemens.net \
    --to=henning.schild@siemens.com \
    --cc=isar-users@googlegroups.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