summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>2019-10-06 16:24:15 +0000
committerBob Beck <beck@cvs.openbsd.org>2019-10-06 16:24:15 +0000
commit16dfc514a3ca3b914b76f97826ea09921f7f4f78 (patch)
treebe762da10d6da036a1713feca9b9ea86dc2a9dde /sys/arch
parent6b90b4ebe4788a3c98914d2e059f0e581939ecfb (diff)
Fix vn_open to require an op of 0, and 0 or KERNELPATH only as flags.
sweep tree to correct NDIINT op and flags ahead of time. document the requirement. This allows KERNELPATH to be used to bypass unveil for crash dumps with nosuidcoredump=2 or 3 ok visa@ deraadt@ florian@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/sparc64/dev/vdsp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc64/dev/vdsp.c b/sys/arch/sparc64/dev/vdsp.c
index 9d50c2ffe18..189eec982f3 100644
--- a/sys/arch/sparc64/dev/vdsp.c
+++ b/sys/arch/sparc64/dev/vdsp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vdsp.c,v 1.45 2018/05/02 02:24:55 visa Exp $ */
+/* $OpenBSD: vdsp.c,v 1.46 2019/10/06 16:24:14 beck Exp $ */
/*
* Copyright (c) 2009, 2011, 2014 Mark Kettenis
*
@@ -918,7 +918,7 @@ vdsp_open(void *arg1)
if (name == NULL)
return;
- NDINIT(&nd, LOOKUP, FOLLOW, UIO_SYSSPACE, name, p);
+ NDINIT(&nd, 0, 0, UIO_SYSSPACE, name, p);
error = vn_open(&nd, FREAD | FWRITE, 0);
if (error) {
printf("VOP_OPEN: %s, %d\n", name, error);