summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1998-02-22 01:00:27 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1998-02-22 01:00:27 +0000
commit9d46c4f0978d2c38dd02903a582e371b32653ba1 (patch)
treeb9def6aa3ad3d5dc91bd99764710f8c2eb45d013 /sys
parent6b6bcb3cf87e5918fc8a35db21d6a89c2e0d07db (diff)
Improve fine-grain control over emulated binaries by storing OS tags during
the process' runtime, so that personality checks can be done later
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/exec_elf.h3
-rw-r--r--sys/sys/proc.h4
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];