Re: [PATCH v2] elf: Make string tunables startup-only
Florian Weimer <[email protected]> Thu, 30 Jul 2026 14:59:09 +0200
| Newsgroups | gmane.comp.lib.glibc.alpha |
|---|---|
| Message-ID | <[email protected]> |
* Adhemerval Zanella Netto:
> On 30/07/26 03:41, Andreas Schwab wrote:
>> On Jul 29 2026, Adhemerval Zanella wrote:
>>
>>> +/* Set by __tunable_seal_strings once the values of the string tunables are
>>> + no longer valid. */
>>> +static bool tunables_strings_sealed attribute_relro;
>>> +
>>> +static void __attribute__ ((noreturn))
>>> +tunable_sealed_error (const tunable_t *cur, const char *action)
>>> +{
>>> + _dl_fatal_printf ("Fatal glibc error: %s: string tunable %s after "
>>> + "process initialization\n", cur->name, action);
>>
>> I think this should be presented as an internal error, ie. it is not due
>> to some kind of resource constraint, but a glibc programming error.
>>
>
> Maybe something like:
>
> "internal error: %s: string tunable %s after process initialization\n"
>
> ?
“Fatal glibc error” should still be present, I think.
Florian