diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2018-09-01 17:02:13 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2018-09-01 17:02:13 +0000 |
commit | e835840a27967c133686331b3580c2d35a2e0039 (patch) | |
tree | a96694d1a41b2bfe9a136a296507eccc5a864182 /sys/kern | |
parent | be45141f63ce9ea7e1350415de96fab191ca3ea9 (diff) |
Fix errno for post-lock unveil calls
from Jan Klemkow
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/vfs_syscalls.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |