diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-09 01:37:11 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-09 01:37:11 +0000 |
commit | 7a01108f60e58c5683c269bbbb884090b5a0620f (patch) | |
tree | d28dc1713411066fb4ced6b7bb3fe35eb3a43955 /usr.bin/write | |
parent | 76228dc5f1e37f76feb11003febafceed8e121f0 (diff) |
Change all tame callers to namechange to pledge(2).
Diffstat (limited to 'usr.bin/write')
-rw-r--r-- | usr.bin/write/write.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/write/write.c b/usr.bin/write/write.c index d239d27482c..ffbe8a8681f 100644 --- a/usr.bin/write/write.c +++ b/usr.bin/write/write.c @@ -1,4 +1,4 @@ -/* $OpenBSD: write.c,v 1.30 2015/10/06 03:25:02 deraadt Exp $ */ +/* $OpenBSD: write.c,v 1.31 2015/10/09 01:37:09 deraadt Exp $ */ /* $NetBSD: write.c,v 1.5 1995/08/31 21:48:32 jtc Exp $ */ /* @@ -250,8 +250,8 @@ do_write(char *tty, char *mytty, uid_t myuid) * Unfortunately this is rather late - well after utmp * parsing, then pinned by the tty open and setresgid */ - if (tame("stdio", NULL) == -1) - err(1, "tame"); + if (pledge("stdio", NULL) == -1) + err(1, "pledge"); (void)signal(SIGINT, done); (void)signal(SIGHUP, done); |