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.17:



details:   https://anonhg.NetBSD.org/src/rev/6b7480147337
branches:  netbsd-1-4
changeset: 469323:6b7480147337
user:      he <he%NetBSD.org@localhost>
date:      Fri Sep 03 08:45:35 1999 +0000

description:
Pull up revision 1.17:
  Don't allow coredump to follow symlinks, this has security
  implications.  (bouyer)

diffstat:

 sys/sys/fcntl.h |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 420a806456bc -r 6b7480147337 sys/sys/fcntl.h
--- a/sys/sys/fcntl.h   Tue Aug 31 15:52:24 1999 +0000
+++ b/sys/sys/fcntl.h   Fri Sep 03 08:45:35 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fcntl.h,v 1.15 1998/08/02 18:31:09 kleink Exp $        */
+/*     $NetBSD: fcntl.h,v 1.15.6.1 1999/09/03 08:45:35 he Exp $        */
 
 /*-
  * Copyright (c) 1983, 1990, 1993
@@ -121,6 +121,13 @@
 #define        FMARK           0x00001000      /* mark during gc() */
 #define        FDEFER          0x00002000      /* defer for next gc pass */
 #define        FHASLOCK        0x00004000      /* descriptor holds advisory lock */
+/*
+ * Note: The below is not a flag that can be used in the struct file. 
+ * It's an option that can be passed to vn_open to make sure it doesn't
+ * follow a symlink on the last lookup
+ */
+#define        FNOSYMLINK      0x00080000      /* Don't follow symlink for last
+                                          component */
 /* bits to save after open(2) */
 #define        FMASK           (FREAD|FWRITE|FAPPEND|FASYNC|FFSYNC|FNONBLOCK|FDSYNC|\
                         FRSYNC)



Home | Main Index | Thread Index | Old Index