From: Florian Weimer <fweimer@redhat.com>
To: DJ Delorie <dj@redhat.com>
Cc: libc-alpha@sourceware.org
Subject: Re: [patch v3] Allow for unpriviledged nested containers
Date: Thu, 18 Nov 2021 21:20:47 +0100 [thread overview]
Message-ID: <87k0h5cj1c.fsf@oldenburg.str.redhat.com> (raw)
In-Reply-To: <xnsfvt1am3.fsf@greed.delorie.com> (DJ Delorie's message of "Thu, 18 Nov 2021 15:18:12 -0500")
* DJ Delorie:
> IIRC part of the unshared pid namespace was to test processes that act
> differently if they're pid 1 (init) but I don't think we have any of
> those yet. Certainly the unshared mount namespace has been used to test
> corrupt config files etc.
>
> But the security issue is for the CICD tools, which test unvetted
> patches from the mailing list. Bind mounting /proc doesn't exit that
> security (it just gives you the same /proc the build already saw) but
> *enabling* a non-bind-mounted proc means giving security privs to the
> build that I'd rather not give.
There is no new security issue because the patch could as well change
support/test-container.c.
The bind mount doesn't give you the /proc from the host, but from the
container running the glibc build. That still doesn't match the new PID
namespace created by test-container, though.
> Florian Weimer <fweimer@redhat.com> writes:
>>> One process can have different PIDs depending on how you look at it.
>>
>> Then elf/tst-pldd should be fine with 4.
>
> Sure, but if getpid() returns 4, and /proc/4/ is for a different process
> (or doesn't exist), the test fails. pldd would have to know the pid in
> the parent's namespace, for the same process, which might be something
> like /proc/41768423/ instead of /proc/4/
Sorry I meant 3b there.
Thanks,
Florian
next prev parent reply other threads:[~2021-11-18 20:20 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-15 23:08 DJ Delorie
2021-11-17 11:06 ` Florian Weimer
2021-11-17 22:44 ` DJ Delorie
2021-11-18 11:35 ` Florian Weimer
2021-11-18 18:37 ` DJ Delorie
2021-11-18 19:47 ` Florian Weimer
2021-11-18 19:52 ` DJ Delorie
2021-11-18 19:55 ` Florian Weimer
2021-11-18 20:18 ` DJ Delorie
2021-11-18 20:20 ` Florian Weimer [this message]
2021-11-18 20:25 ` DJ Delorie
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=87k0h5cj1c.fsf@oldenburg.str.redhat.com \
--to=fweimer@redhat.com \
--cc=dj@redhat.com \
--cc=libc-alpha@sourceware.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).