From: Karl Trygve Kalleberg <karltk@prosalg.no>
To: gentoo-dev@gentoo.org
Subject: [gentoo-dev] Braindump wrt fakeroot and path sandboxing
Date: Fri Nov 2 08:10:02 2001 [thread overview]
Message-ID: <20011102170755.434fbea8.karltk@prosalg.no> (raw)
Hi gang.
I have looked into the innards of Subterfugue, and hacked together a short
C program that captures syscalls from a child.
While the program does not do anything with the captured arguments
(attached), I do not think there will be a significant overhead associated
with path sandboxing at all.
The reason for this postulation is that a traced child running "find /"
completes at the same time as a non-traced "find /". Only for
installations that do extreme amounts of syscalls might we notice an
overhead, and I really think "find /" is as syscall-intensive as we'll get
during compilation and installation.
If anybody else can prove me wrong on that one, now's the time.
After adding the path sandboxing code, I will integrate the cut-down
fakeroot that chouser (might have) finished, so we have a fairly secure
and lean sandbox overall in which build processes can work happily.
For those who're not up to date on this subject, the reason why we want a
combination of subterfugue's SimplePathSandbox and fakeroot is that
1) We don't want ebuilds to write outside of ${S}, /tmp or ${D}
2) We really don't want to run the ebuilds as the real root, if we can
fake it,
hence fakeroot. (Fakeroot lets the ebuild think it runs as root; in
practice
this infers chown-privileges to a regular user).
3) We do not want to use subterfugue since it's too slow. Fakeroot seems
to have
some features that are overkill for this project, and at any rate, we
really
only want to do syscall tracing once. (The alternative would be a
sandbox
process that contained fakeroot that contained the ebuild...)
Interested parties, please do some thinking on this.
Oh, I will be away until Thursday, so you have plenty of time ;p
Kind regards,
Karl T
next reply other threads:[~2001-11-02 15:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-02 8:10 Karl Trygve Kalleberg [this message]
2001-11-02 9:46 ` [gentoo-dev] Braindump wrt fakeroot and path sandboxing Chad Huneycutt
2001-11-05 8:54 ` Aron Griffis
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=20011102170755.434fbea8.karltk@prosalg.no \
--to=karltk@prosalg.no \
--cc=gentoo-dev@cvs.gentoo.org \
--cc=gentoo-dev@gentoo.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox