diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-09 01:10:28 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-09 01:10:28 +0000 |
commit | 11ffd90184916e72409bd0c4fb5589b4b5bb565c (patch) | |
tree | f8b218c0d5ef85602345bab0b6f711bad3d28d25 /sys/kern/vfs_lookup.c | |
parent | a0d0134849c987c92c72ad5425a500229bba1275 (diff) |
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/vfs_lookup.c')
-rw-r--r-- | sys/kern/vfs_lookup.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/vfs_lookup.c b/sys/kern/vfs_lookup.c index fc8c274ec27..9de8580dd50 100644 --- a/sys/kern/vfs_lookup.c +++ b/sys/kern/vfs_lookup.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_lookup.c,v 1.56 2015/09/11 08:22:31 guenther Exp $ */ +/* $OpenBSD: vfs_lookup.c,v 1.57 2015/10/09 01:10:27 deraadt Exp $ */ /* $NetBSD: vfs_lookup.c,v 1.17 1996/02/09 19:00:59 christos Exp $ */ /* @@ -49,7 +49,7 @@ #include <sys/pool.h> #include <sys/filedesc.h> #include <sys/proc.h> -#include <sys/tame.h> +#include <sys/pledge.h> #include <sys/file.h> #include <sys/fcntl.h> @@ -166,8 +166,8 @@ fail: */ if ((ndp->ni_rootdir = fdp->fd_rdir) == NULL) ndp->ni_rootdir = rootvnode; - if ((p->p_p->ps_flags & PS_TAMED)) { - error = tame_namei(p, cnp->cn_pnbuf); + if ((p->p_p->ps_flags & PS_PLEDGE)) { + error = pledge_namei(p, cnp->cn_pnbuf); if (error) goto fail; } |