diff options
| author | 1999-02-10 08:07:19 +0000 | |
|---|---|---|
| committer | 1999-02-10 08:07:19 +0000 | |
| commit | ca935f4d61ac9f5ae1c864fdc27e812bb536fede (patch) | |
| tree | 1cbfd9a2502c8857ea04da28f9cbc398f4fec20f /sys/compat/linux/linux_exec.c | |
| parent | freebsd madvise() clone, always returns 0 for now (diff) | |
| download | wireguard-openbsd-ca935f4d61ac9f5ae1c864fdc27e812bb536fede.tar.xz wireguard-openbsd-ca935f4d61ac9f5ae1c864fdc27e812bb536fede.zip | |
branding support and freebsd elf
Diffstat (limited to 'sys/compat/linux/linux_exec.c')
| -rw-r--r-- | sys/compat/linux/linux_exec.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_exec.c b/sys/compat/linux/linux_exec.c index 5002aaa0acf..c14c75ebb0a 100644 --- a/sys/compat/linux/linux_exec.c +++ b/sys/compat/linux/linux_exec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_exec.c,v 1.9 1999/01/11 05:12:12 millert Exp $ */ +/* $OpenBSD: linux_exec.c,v 1.10 1999/02/10 08:07:20 deraadt Exp $ */ /* $NetBSD: linux_exec.c,v 1.13 1996/04/05 00:01:10 christos Exp $ */ /* @@ -374,10 +374,14 @@ linux_elf_probe(p, epp, itp, pos, os) u_long *pos; u_int8_t *os; { - char *bp; + Elf32_Ehdr *eh = epp->ep_hdr; + char *bp, *brand; int error; size_t len; + brand = elf_check_brand(eh); + if (brand && strcmp(brand, "Linux")) + return (EINVAL); if (itp[0]) { if ((error = emul_find(p, NULL, linux_emul_path, itp, &bp, 0))) return (error); |
