From: deraadt Date: Sat, 1 Sep 2018 17:02:12 +0000 (+0000) Subject: Fix errno for post-lock unveil calls X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=67852ea01b4b9c09df650a6e861da92dc3a955d8;p=openbsd Fix errno for post-lock unveil calls from Jan Klemkow --- diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index 767ec035e08..4281137a647 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_syscalls.c,v 1.304 2018/08/20 16:00:22 mpi Exp $ */ +/* $OpenBSD: vfs_syscalls.c,v 1.305 2018/09/01 17:02:12 deraadt Exp $ */ /* $NetBSD: vfs_syscalls.c,v 1.71 1996/04/23 10:29:02 mycroft Exp $ */ /* @@ -899,7 +899,7 @@ sys_unveil(struct proc *p, void *v, register_t *retval) } if (p->p_p->ps_uvdone != 0) - return EINVAL; + return EPERM; error = copyinstr(SCARG(uap, permissions), permissions, sizeof(permissions), NULL);