Source-Changes-HG archive

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

[src/netbsd-1-4]: src/sys/sys Pull up revision 1.136 (via patch, requested by...



details:   https://anonhg.NetBSD.org/src/rev/3683980ec7aa
branches:  netbsd-1-4
changeset: 471319:3683980ec7aa
user:      he <he%NetBSD.org@localhost>
date:      Mon Jan 14 15:19:24 2002 +0000

description:
Pull up revision 1.136 (via patch, requested by he):
  Fix a ptrace/execve race condition which could be used to modify
  the child process' image during execve.  This would be a security
  issue due to setuid programs.

diffstat:

 sys/sys/proc.h |  39 ++++++++++++++++++++-------------------
 1 files changed, 20 insertions(+), 19 deletions(-)

diffs (53 lines):

diff -r 2bfec6103cc2 -r 3683980ec7aa sys/sys/proc.h
--- a/sys/sys/proc.h    Mon Jan 14 15:19:04 2002 +0000
+++ b/sys/sys/proc.h    Mon Jan 14 15:19:24 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: proc.h,v 1.74.2.2 2000/04/30 20:12:04 he Exp $ */
+/*     $NetBSD: proc.h,v 1.74.2.3 2002/01/14 15:19:24 he Exp $ */
 
 /*-
  * Copyright (c) 1986, 1989, 1991, 1993
@@ -210,24 +210,25 @@
 #define        SZOMB   5               /* Awaiting collection by parent. */
 
 /* These flags are kept in p_flag. */
-#define        P_ADVLOCK       0x00001 /* Process may hold a POSIX advisory lock. */
-#define        P_CONTROLT      0x00002 /* Has a controlling terminal. */
-#define        P_INMEM         0x00004 /* Loaded into memory. */
-#define        P_NOCLDSTOP     0x00008 /* No SIGCHLD when children stop. */
-#define        P_PPWAIT        0x00010 /* Parent is waiting for child to exec/exit. */
-#define        P_PROFIL        0x00020 /* Has started profiling. */
-#define        P_SELECT        0x00040 /* Selecting; wakeup/waiting danger. */
-#define        P_SINTR         0x00080 /* Sleep is interruptible. */
-#define        P_SUGID         0x00100 /* Had set id privileges since last exec. */
-#define        P_SYSTEM        0x00200 /* System proc: no sigs, stats or swapping. */
-#define        P_TIMEOUT       0x00400 /* Timing out during sleep. */
-#define        P_TRACED        0x00800 /* Debugged process being traced. */
-#define        P_WAITED        0x01000 /* Debugging process has waited for child. */
-#define        P_WEXIT         0x02000 /* Working on exiting. */
-#define        P_EXEC          0x04000 /* Process called exec. */
-#define        P_OWEUPC        0x08000 /* Owe process an addupc() call at next ast. */
-#define        P_FSTRACE       0x10000 /* Debugger process being traced by procfs */
-#define        P_NOCLDWAIT     0x20000 /* No zombies if child dies */
+#define        P_ADVLOCK       0x000001 /* Process may hold a POSIX advisory lock. */
+#define        P_CONTROLT      0x000002 /* Has a controlling terminal. */
+#define        P_INMEM         0x000004 /* Loaded into memory. */
+#define        P_NOCLDSTOP     0x000008 /* No SIGCHLD when children stop. */
+#define        P_PPWAIT        0x000010 /* Parent is waiting for child to exec/exit. */
+#define        P_PROFIL        0x000020 /* Has started profiling. */
+#define        P_SELECT        0x000040 /* Selecting; wakeup/waiting danger. */
+#define        P_SINTR         0x000080 /* Sleep is interruptible. */
+#define        P_SUGID         0x000100 /* Had set id privileges since last exec. */
+#define        P_SYSTEM        0x000200 /* System proc: no sigs, stats or swapping. */
+#define        P_TIMEOUT       0x000400 /* Timing out during sleep. */
+#define        P_TRACED        0x000800 /* Debugged process being traced. */
+#define        P_WAITED        0x001000 /* Debugging process has waited for child. */
+#define        P_WEXIT         0x002000 /* Working on exiting. */
+#define        P_EXEC          0x004000 /* Process called exec. */
+#define        P_OWEUPC        0x008000 /* Owe process an addupc() call at next ast. */
+#define        P_FSTRACE       0x010000 /* Debugger process being traced by procfs */
+#define        P_NOCLDWAIT     0x020000 /* No zombies if child dies */
+#define P_INEXEC       0x100000 /* Process is exec'ing and cannot be traced */
 
 /*
  * These flags are kept in schedflags.  schedflags may be modified



Home | Main Index | Thread Index | Old Index