On Sun, Oct 28, 2018 at 04:42:33PM -0600, Bob Beck wrote: > CVSROOT: /cvs > Module name: src > Changes by: b...@cvs.openbsd.org 2018/10/28 16:42:33 > > Modified files: > sys/kern : kern_unveil.c subr_prf.c vfs_lookup.c > vfs_syscalls.c > sys/sys : proc.h > regress/sys/kern/unveil: syscalls.c > lib/libc/sys : unveil.2 > > Log message: > Correctly deal with upper level unveil's by keeping track of the covering > unveil for each unveil in the process at unveil() time, and refactoring the > handling of current directory and ISDOTDOT to be much more sensible. > Worked out at ns2k18 with guenther@. > ok deraadt@ >
I think this part shouldn't have be commited. Index: sys/kern/subr_prf.c =================================================================== RCS file: /cvs/src/sys/kern/subr_prf.c,v retrieving revision 1.95 retrieving revision 1.96 diff -u -p -r1.95 -r1.96 --- sys/kern/subr_prf.c 10 Apr 2018 09:24:56 -0000 1.95 +++ sys/kern/subr_prf.c 28 Oct 2018 22:42:33 -0000 1.96 @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_prf.c,v 1.95 2018/04/10 09:24:56 mpi Exp $ */ +/* $OpenBSD: subr_prf.c,v 1.96 2018/10/28 22:42:33 beck Exp $ */ /* $NetBSD: subr_prf.c,v 1.45 1997/10/24 18:14:25 chuck Exp $ */ /*- @@ -113,6 +113,7 @@ int db_panic = 1; * to break into console during boot. It's _really_ useful when debugging * some things in the kernel that can cause init(8) to crash. */ +#define DDB_SAFE_CONSOLE #ifdef DDB_SAFE_CONSOLE int db_console = 1; #else -- Sebastien Marie