HomeFreeBSD

Set the interpreter path to /nonexistent.

Description

Set the interpreter path to /nonexistent.

CloudABI executables are statically linked and don't have an
interpreter. Setting the interpreter path to NULL used to work
previously, but r314851 introduced code that checks the string
unconditionally. Running CloudABI executables now causes a null pointer
dereference.

Looking at the rest of imgact_elf.c, it seems various other codepaths
already leaned on the fact that the interpreter path is set. Let's just
go ahead and pick an obviously incorrect interpreter path to appease
imgact_elf.c.

MFC after: 1 week

Details

Provenance
edAuthored on
Parents
rS315700: Make file descriptor passing work for CloudABI's sendmsg().
Branches
Unknown
Tags
Unknown