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 /sbin/ping/ping.c | |
parent | 76228dc5f1e37f76feb11003febafceed8e121f0 (diff) |
Change all tame callers to namechange to pledge(2).
Diffstat (limited to 'sbin/ping/ping.c')
-rw-r--r-- | sbin/ping/ping.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sbin/ping/ping.c b/sbin/ping/ping.c index a78b4f50669..57af30bf1be 100644 --- a/sbin/ping/ping.c +++ b/sbin/ping/ping.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ping.c,v 1.126 2015/10/03 00:44:37 deraadt Exp $ */ +/* $OpenBSD: ping.c,v 1.127 2015/10/09 01:37:06 deraadt Exp $ */ /* $NetBSD: ping.c,v 1.20 1995/08/11 22:37:58 cgd Exp $ */ /* @@ -502,11 +502,11 @@ main(int argc, char *argv[]) (void)printf("PING %s: %d data bytes\n", hostname, datalen); if (options & F_NUMERIC) { - if (tame("stdio inet", NULL) == -1) - err(1, "tame"); + if (pledge("stdio inet", NULL) == -1) + err(1, "pledge"); } else { - if (tame("stdio inet dns", NULL) == -1) - err(1, "tame"); + if (pledge("stdio inet dns", NULL) == -1) + err(1, "pledge"); } (void)signal(SIGINT, finish); |