-/* $OpenBSD: rde.c,v 1.339 2015/09/21 09:47:15 phessler Exp $ */
+/* $OpenBSD: rde.c,v 1.340 2015/10/07 20:26:16 deraadt Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#include <err.h>
#include "bgpd.h"
#include "mrt.h"
setresuid(pw->pw_uid, pw->pw_uid, pw->pw_uid))
fatal("can't drop privileges");
+ if (tame("stdio unix route recvfd", NULL) == -1)
+ fatal("tame");
+
signal(SIGTERM, rde_sighdlr);
signal(SIGINT, rde_sighdlr);
signal(SIGPIPE, SIG_IGN);