mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Require whole brand string matching for old Elf branding.
Sponsored by: The FreeBSD Foundation MFC after: 1 week
This commit is contained in:
parent
0bbee4cd3f
commit
3d560b4be2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=314850
@ -309,8 +309,8 @@ __elfN(get_brandinfo)(struct image_params *imgp, const char *interp,
|
|||||||
continue;
|
continue;
|
||||||
if (hdr->e_machine == bi->machine &&
|
if (hdr->e_machine == bi->machine &&
|
||||||
(hdr->e_ident[EI_OSABI] == bi->brand ||
|
(hdr->e_ident[EI_OSABI] == bi->brand ||
|
||||||
strncmp((const char *)&hdr->e_ident[OLD_EI_BRAND],
|
strcmp((const char *)&hdr->e_ident[OLD_EI_BRAND],
|
||||||
bi->compat_3_brand, strlen(bi->compat_3_brand)) == 0)) {
|
bi->compat_3_brand) == 0)) {
|
||||||
/* Looks good, but give brand a chance to veto */
|
/* Looks good, but give brand a chance to veto */
|
||||||
if (!bi->header_supported || bi->header_supported(imgp))
|
if (!bi->header_supported || bi->header_supported(imgp))
|
||||||
return (bi);
|
return (bi);
|
||||||
|
Loading…
Reference in New Issue
Block a user