[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#44261: running a daemon with userns in relocateble pack breaks
From: |
Ludovic Courtès |
Subject: |
bug#44261: running a daemon with userns in relocateble pack breaks |
Date: |
Sat, 31 Oct 2020 23:19:49 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
Hi,
Jan Nieuwenhuizen <janneke@gnu.org> skribis:
> Ludovic Courtès writes:
[...]
>> The attached patch adds a test loosely based on yours and a fix for
>> that. The fix (for the “userns” engine) is to make NEW_ROOT a tmpfs,
>> such that upon completion, all we need to do is to unmount it and remove
>> it; it lives on as the root file system of child processes.
>>
>> In the “fakechroot” case, we have to leave NEW_ROOT behind, which is not
>> great but acceptable (it’s user-owned, #o700, and it’s under /tmp). The
>> test only checks the “userns” engine.
>
> Yes, I think this is acceptable.
>
>> If you confirm that it works for you and looks reasonable, we can apply
>> it.
>
> Yes, this works. The test and also my reproducer now work fine.
Thanks for checking, I pushed the fix as
bfe82fe2f6e9f34c0774fe2114cdc7e937ba8bd2.
Ludo’.