summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/session.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-09 01:37:11 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-09 01:37:11 +0000
commit7a01108f60e58c5683c269bbbb884090b5a0620f (patch)
treed28dc1713411066fb4ced6b7bb3fe35eb3a43955 /usr.sbin/bgpd/session.c
parent76228dc5f1e37f76feb11003febafceed8e121f0 (diff)
Change all tame callers to namechange to pledge(2).
Diffstat (limited to 'usr.sbin/bgpd/session.c')
-rw-r--r--usr.sbin/bgpd/session.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c
index 8b9667ed0ba..ff6f4623aae 100644
--- a/usr.sbin/bgpd/session.c
+++ b/usr.sbin/bgpd/session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: session.c,v 1.343 2015/10/07 20:25:22 deraadt Exp $ */
+/* $OpenBSD: session.c,v 1.344 2015/10/09 01:37:09 deraadt Exp $ */
/*
* Copyright (c) 2003, 2004, 2005 Henning Brauer <henning@openbsd.org>
@@ -219,8 +219,8 @@ session_main(int debug, int verbose)
setresuid(pw->pw_uid, pw->pw_uid, pw->pw_uid))
fatal("can't drop privileges");
- if (tame("stdio inet recvfd", NULL) == -1)
- fatal("tame");
+ if (pledge("stdio inet recvfd", NULL) == -1)
+ fatal("pledge");
signal(SIGTERM, session_sighdlr);
signal(SIGINT, session_sighdlr);