summaryrefslogtreecommitdiffstats
path: root/sys/kern/init_sysent.c
diff options
context:
space:
mode:
authorbeck <beck@openbsd.org>2019-05-13 22:55:27 +0000
committerbeck <beck@openbsd.org>2019-05-13 22:55:27 +0000
commit1de745bca436d2f8732f18785f95bf07a0af4fd5 (patch)
tree0b7e97ab8390170d430b7d0f71291029c45228b4 /sys/kern/init_sysent.c
parentRemove unused pad check, which is handled by tls1_cbc_remove_padding() now. (diff)
downloadwireguard-openbsd-1de745bca436d2f8732f18785f95bf07a0af4fd5.tar.xz
wireguard-openbsd-1de745bca436d2f8732f18785f95bf07a0af4fd5.zip
Add a kernel implementation of realpath() as __realpath().
We want this so that we can stop allowing readlink() on traversed vnodes in unveil(). This includes all the kernel side and the system call. This is not yet used in libc for realpath, so nothing calls this yet. The libc wrapper will be committed later. Testing by many, and ports build by naddy@ ok deraadt@
Diffstat (limited to 'sys/kern/init_sysent.c')
-rw-r--r--sys/kern/init_sysent.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/init_sysent.c b/sys/kern/init_sysent.c
index 79933937915..a6a4b2e283e 100644
--- a/sys/kern/init_sysent.c
+++ b/sys/kern/init_sysent.c
@@ -1,10 +1,10 @@
-/* $OpenBSD: init_sysent.c,v 1.201 2019/05/09 20:30:22 cheloha Exp $ */
+/* $OpenBSD: init_sysent.c,v 1.202 2019/05/13 22:55:27 beck Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from; OpenBSD: syscalls.master,v 1.189 2019/01/11 18:46:30 deraadt Exp
+ * created from; OpenBSD: syscalls.master,v 1.190 2019/05/09 20:30:22 cheloha Exp
*/
#include <sys/param.h>
@@ -262,8 +262,8 @@ struct sysent sysent[] = {
sys_nosys }, /* 113 = unimplemented fktrace */
{ 2, s(struct sys_unveil_args), 0,
sys_unveil }, /* 114 = unveil */
- { 0, 0, 0,
- sys_nosys }, /* 115 = obsolete vtrace */
+ { 2, s(struct sys___realpath_args), 0,
+ sys___realpath }, /* 115 = __realpath */
{ 0, 0, 0,
sys_nosys }, /* 116 = obsolete t32_gettimeofday */
{ 0, 0, 0,