Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/linux if LINUX_MACHDEP_PASS_PPID_AND_EUID is defi...



details:   https://anonhg.NetBSD.org/src/rev/71cba93b6d95
branches:  trunk
changeset: 499918:71cba93b6d95
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Fri Dec 01 20:31:13 2000 +0000

description:
if LINUX_MACHDEP_PASS_PPID_AND_EUID is defined for given arch, add
flags EMUL_GETPID_PASS_PPID|EMUL_GETID_PASS_EID to emul_linux
define this option for alpha

diffstat:

 sys/compat/linux/arch/alpha/linux_machdep.h |  5 ++++-
 sys/compat/linux/common/linux_exec.c        |  7 ++++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diffs (38 lines):

diff -r d0e99771e8a4 -r 71cba93b6d95 sys/compat/linux/arch/alpha/linux_machdep.h
--- a/sys/compat/linux/arch/alpha/linux_machdep.h       Fri Dec 01 19:50:17 2000 +0000
+++ b/sys/compat/linux/arch/alpha/linux_machdep.h       Fri Dec 01 20:31:13 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_machdep.h,v 1.2 2000/03/18 23:40:56 erh Exp $    */
+/*     $NetBSD: linux_machdep.h,v 1.3 2000/12/01 20:31:13 jdolecek Exp $       */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -104,4 +104,7 @@
 __END_DECLS
 #endif /* !_KERNEL */
 
+/* pass parent ID in getpid() and pass effective id in get[ug]id() */
+#define LINUX_MACHDEP_PASS_PPID_AND_EUID
+
 #endif /* _ALPHA_LINUX_MACHDEP_H */
diff -r d0e99771e8a4 -r 71cba93b6d95 sys/compat/linux/common/linux_exec.c
--- a/sys/compat/linux/common/linux_exec.c      Fri Dec 01 19:50:17 2000 +0000
+++ b/sys/compat/linux/common/linux_exec.c      Fri Dec 01 20:31:13 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_exec.c,v 1.40 2000/12/01 12:28:32 jdolecek Exp $ */
+/*     $NetBSD: linux_exec.c,v 1.41 2000/12/01 20:31:13 jdolecek Exp $ */
 
 /*-
  * Copyright (c) 1994, 1995, 1998 The NetBSD Foundation, Inc.
@@ -119,6 +119,11 @@
        linux_e_proc_exec,
        linux_e_proc_fork,
        linux_e_proc_exit,
+#ifdef LINUX_MACHDEP_PASS_PPID_AND_EUID
+       EMUL_GETPID_PASS_PPID|EMUL_GETID_PASS_EID,
+#else
+       0,
+#endif
 };
 
 /*



Home | Main Index | Thread Index | Old Index