diff options
author | 2015-10-09 01:10:27 +0000 | |
---|---|---|
committer | 2015-10-09 01:10:27 +0000 | |
commit | df174574d401c5c122a73e20e0b23ac91a73c4b1 (patch) | |
tree | d0c7d0d93f49ae2e4be87da49534a619a719af8a /sys/kern/kern_time.c | |
parent | After replacement alloca() with alloc(), out-of-heap happened when booting (diff) | |
download | wireguard-openbsd-df174574d401c5c122a73e20e0b23ac91a73c4b1.tar.xz wireguard-openbsd-df174574d401c5c122a73e20e0b23ac91a73c4b1.zip |
Rename tame() to pledge(). This fairly interface has evolved to be more
strict than anticipated. It allows a programmer to pledge/promise/covenant
that their program will operate within an easily defined subset of the
Unix environment, or it pays the price.
Diffstat (limited to 'sys/kern/kern_time.c')
-rw-r--r-- | sys/kern/kern_time.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_time.c b/sys/kern/kern_time.c index 2942e3de2cc..3aab66ce4d9 100644 --- a/sys/kern/kern_time.c +++ b/sys/kern/kern_time.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_time.c,v 1.93 2015/09/11 08:22:31 guenther Exp $ */ +/* $OpenBSD: kern_time.c,v 1.94 2015/10/09 01:10:27 deraadt Exp $ */ /* $NetBSD: kern_time.c,v 1.20 1996/02/18 11:57:06 fvdl Exp $ */ /* @@ -40,7 +40,7 @@ #include <sys/ktrace.h> #include <sys/vnode.h> #include <sys/signalvar.h> -#include <sys/tame.h> +#include <sys/pledge.h> #include <sys/timetc.h> #include <sys/mount.h> @@ -433,7 +433,7 @@ sys_adjtime(struct proc *p, void *v, register_t *retval) struct timeval atv; int error; - if (tame_adjtime_check(p, delta)) + if (pledge_adjtime_check(p, delta)) return (EPERM); if (olddelta) { |