[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#41189] [PATCH 0/3] Add Fakechroot engine for 'guix pack -RR'
From: |
Carlos O'Donell |
Subject: |
[bug#41189] [PATCH 0/3] Add Fakechroot engine for 'guix pack -RR' |
Date: |
Mon, 11 May 2020 17:18:04 -0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 |
"For example, some of the ‘open’ calls made in libc are notintercepted;
on such call is in ‘__gconv_load_cache’, which makesit fail, and in
turn makes Guile fail to start in its first‘scm_to_locale_string’ call."
-- Ludovic Courtès wrote on Mon May 11 19:05:54+0200 2020
There are two issues at hand:
* Standard namespace issues (conformance)
* PLT avoidance issues (performance)
See:
https://sourceware.org/glibc/wiki/Style_and_Conventions#Double-underscore_names_for_public_API_functions
It is an internal implementation detail that open(2) is being called by
the library, and as such glibc bypasses the ELF interposable symbol
open, and instead calls open directly without this being visible to the
application.
There are many such cases where we bypass the ELF interposable symbol to
provide standard namespace cleanliness, performance, and so provide consistent
behaviour.
Yes, in your case this means you cannot override the behaviour of the
interface without using some kind of bind mount, or mount namespace
(to provide an alternate view of the filesystem).
We would have to argue upstream that some minimal subset of the filesystem
access should be interposable via open/close/read/write, but that's going
to get difficult quickly and have significant performance problems.
It would be simpler, IMO, to set LOCPATH and GCONV_PATH appropriately and
alter the runtime behaviour that way. If that doesn't work, perhaps because
of setuid, then we can discuss further.
--
Cheers,
Carlos.
- [bug#41189] [PATCH 0/3] Add Fakechroot engine for 'guix pack -RR', Ludovic Courtès, 2020/05/11
- [bug#41189] [PATCH 1/3] pack: Wrapper honors 'GUIX_EXECUTION_ENGINE' environment variable., Ludovic Courtès, 2020/05/11
- [bug#41189] [PATCH 0/3] Add Fakechroot engine for 'guix pack -RR',
Carlos O'Donell <=
- [bug#41189] [PATCH 0/3] Add Fakechroot engine for 'guix pack -RR', Ludovic Courtès, 2020/05/12
- [bug#41189] [PATCH 0/3] Add Fakechroot engine for 'guix pack -RR', Carlos O'Donell, 2020/05/12
- [bug#41189] [PATCH 0/3] Add Fakechroot engine for 'guix pack -RR', Ludovic Courtès, 2020/05/12
- [bug#41189] [PATCH v2 0/4] Add Fakechroot engine for 'guix pack -RR', Ludovic Courtès, 2020/05/13
- [bug#41189] [PATCH v2 1/4] pack: Wrapper honors 'GUIX_EXECUTION_ENGINE' environment variable., Ludovic Courtès, 2020/05/13
- [bug#41189] [PATCH v2 3/4] gnu: Add fakechroot., Ludovic Courtès, 2020/05/13
- [bug#41189] [PATCH v2 4/4] pack: Add relocation via ld.so and fakechroot., Ludovic Courtès, 2020/05/13
- [bug#41189] [PATCH v2 2/4] pack: Factorize store references in wrapper., Ludovic Courtès, 2020/05/13
- bug#41189: [PATCH v2 0/4] Add Fakechroot engine for 'guix pack -RR', Ludovic Courtès, 2020/05/14