]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r345661:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>
Tue, 14 May 2019 20:26:05 +0000 (20:26 +0000)
committerEdward Tomasz Napierala <trasz@FreeBSD.org>
Tue, 14 May 2019 20:26:05 +0000 (20:26 +0000)
commit787ad7e7293907064b8bc0a4eede279c9f2e1db8
tree6115afcb30150d6adfcfb106ec36cad93ceb3d9c
parent5834a867cafa8ab516df81e7ea0902e2aaa96fcb
MFC r345661:

Factor out retrieving the interpreter path from the main ELF
loader routine.

MFC r345734 by kib:

Fix branding after r345661.

In particular, elf32 FreeBSD binaries were not executed on LP64 hosts.
The interp_name_len value should account for the nul terminator.  This
is needed for strncmp()s in brand checking code to work.

Sponsored by: DARPA, AFRL
sys/kern/imgact_elf.c