summaryrefslogtreecommitdiff
path: root/sys/kern/vfs_syscalls.c
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>2018-07-13 09:36:01 +0000
committerBob Beck <beck@cvs.openbsd.org>2018-07-13 09:36:01 +0000
commita9968eb8f34d2ab40a505735bb5afbf3d1f335e3 (patch)
tree6259a3d506b95cf37460024b9d6ba58b38c6259e /sys/kern/vfs_syscalls.c
parent2ceffcf14d1f6c3d1d342b8971d426d8be87a783 (diff)
Make the default failure for unveil while disabled return success
so that people don't get screwed when playing with it on their machines
Diffstat (limited to 'sys/kern/vfs_syscalls.c')
-rw-r--r--sys/kern/vfs_syscalls.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c
index 4a66952294f..bb3a3e5431f 100644
--- a/sys/kern/vfs_syscalls.c
+++ b/sys/kern/vfs_syscalls.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_syscalls.c,v 1.293 2018/07/13 09:25:23 beck Exp $ */
+/* $OpenBSD: vfs_syscalls.c,v 1.294 2018/07/13 09:36:00 beck Exp $ */
/* $NetBSD: vfs_syscalls.c,v 1.71 1996/04/23 10:29:02 mycroft Exp $ */
/*
@@ -913,8 +913,8 @@ sys_unveil(struct proc *p, void *v, register_t *retval)
if (pathlen < 2)
return EINVAL;
- /* XXX unveil is disabled for now */
- return EPERM;
+ /* XXX unveil is disabled but returns sucess for now */
+ return 0;
if (pathlen == 2 && pathname[0] == '/')
NDINIT(&nd, LOOKUP, FOLLOW | LOCKLEAF | SAVENAME,