diff options
| author | 2019-05-13 22:55:27 +0000 | |
|---|---|---|
| committer | 2019-05-13 22:55:27 +0000 | |
| commit | 1de745bca436d2f8732f18785f95bf07a0af4fd5 (patch) | |
| tree | 0b7e97ab8390170d430b7d0f71291029c45228b4 /sys/kern/init_sysent.c | |
| parent | Remove unused pad check, which is handled by tls1_cbc_remove_padding() now. (diff) | |
| download | wireguard-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.c | 8 |
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, |
