elf: Change ldconfig auxcache magic number (bug 32231)

In commit c628c22963 (elf: Remove
ldconfig kernel version check), the layout of auxcache entries
changed because the osversion field was removed from
struct aux_cache_file_entry.  However, AUX_CACHEMAGIC was not
changed, so existing files are still used, potentially leading
to unintended ldconfig behavior.  This commit changes AUX_CACHEMAGIC,
so that the file is regenerated.

Reported-by: DJ Delorie <dj@redhat.com>
Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
(cherry picked from commit 0a536f6e2f)
This commit is contained in:
Florian Weimer 2024-10-28 14:45:30 +01:00
parent b3c51635ef
commit dcaf51b41e
2 changed files with 2 additions and 1 deletions

1
NEWS
View File

@ -92,6 +92,7 @@ The following bugs are resolved with this release:
[32026] strerror/strsignal TLS not handled correctly for secondary namespaces [32026] strerror/strsignal TLS not handled correctly for secondary namespaces
[32052] Name space violation in fortify wrappers [32052] Name space violation in fortify wrappers
[32137] libio: Attempt wide backup free only for non-legacy code [32137] libio: Attempt wide backup free only for non-legacy code
[32231] elf: Change ldconfig auxcache magic number
Version 2.39 Version 2.39

View File

@ -820,7 +820,7 @@ struct aux_cache_entry
struct aux_cache_entry *next; struct aux_cache_entry *next;
}; };
#define AUX_CACHEMAGIC "glibc-ld.so.auxcache-1.0" #define AUX_CACHEMAGIC "glibc-ld.so.auxcache-2.0"
struct aux_cache_file_entry struct aux_cache_file_entry
{ {