diff options
author | 1998-02-22 01:00:25 +0000 | |
---|---|---|
committer | 1998-02-22 01:00:25 +0000 | |
commit | b5403129753f4b825e12ea3f2ec3080df82534e8 (patch) | |
tree | 99745de2715f81757903757c07bc15465dcc4240 | |
parent | Detect and report a weird error case (residual > request) (diff) | |
download | wireguard-openbsd-b5403129753f4b825e12ea3f2ec3080df82534e8.tar.xz wireguard-openbsd-b5403129753f4b825e12ea3f2ec3080df82534e8.zip |
Improve fine-grain control over emulated binaries by storing OS tags during
the process' runtime, so that personality checks can be done later
-rw-r--r-- | sys/sys/exec_elf.h | 3 | ||||
-rw-r--r-- | sys/sys/proc.h | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/sys/sys/exec_elf.h b/sys/sys/exec_elf.h index d29f5b5d0a5..c701c6702dc 100644 --- a/sys/sys/exec_elf.h +++ b/sys/sys/exec_elf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: exec_elf.h,v 1.11 1997/06/29 07:43:19 deraadt Exp $ */ +/* $OpenBSD: exec_elf.h,v 1.12 1998/02/22 01:00:26 niklas Exp $ */ /* * Copyright (c) 1995, 1996 Erik Theisen. All rights reserved. * @@ -381,6 +381,7 @@ struct elf_args { u_long arg_phaddr; /* program header address */ u_long arg_phentsize; /* Size of program header */ u_long arg_phnum; /* Number of program headers */ + u_long arg_os; /* OS tag */ }; int exec_elf_makecmds __P((struct proc *, struct exec_package *)); diff --git a/sys/sys/proc.h b/sys/sys/proc.h index 8b3911ec31b..7d634cf91f5 100644 --- a/sys/sys/proc.h +++ b/sys/sys/proc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: proc.h,v 1.16 1997/09/15 05:46:14 millert Exp $ */ +/* $OpenBSD: proc.h,v 1.17 1998/02/22 01:00:25 niklas Exp $ */ /* $NetBSD: proc.h,v 1.44 1996/04/22 01:23:21 christos Exp $ */ /*- @@ -126,7 +126,7 @@ struct proc { #define p_rlimit p_limit->pl_rlimit int p_flag; /* P_* flags. */ - u_char p_unused; /* XXX: used to be emulation flag */ + u_char p_os; /* OS tag */ char p_stat; /* S* process status. */ char p_pad1[2]; |