From: beck Date: Fri, 13 Jul 2018 09:36:00 +0000 (+0000) Subject: Make the default failure for unveil while disabled return success X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=03249988e9bbffb48a56883955bda316855561b9;p=openbsd Make the default failure for unveil while disabled return success so that people don't get screwed when playing with it on their machines --- 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,