From 52612c9b82dd783681a6ae9677b40d40be5886df Mon Sep 17 00:00:00 2001 From: deraadt Date: Sat, 4 Aug 2018 03:23:08 +0000 Subject: [PATCH] I can find no reason why portmap needs rpath after initialization. --- usr.sbin/portmap/portmap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.sbin/portmap/portmap.c b/usr.sbin/portmap/portmap.c index 9fbb27c4b77..e7eea45b43f 100644 --- a/usr.sbin/portmap/portmap.c +++ b/usr.sbin/portmap/portmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: portmap.c,v 1.48 2015/10/14 13:32:44 jsg Exp $ */ +/* $OpenBSD: portmap.c,v 1.49 2018/08/04 03:23:08 deraadt Exp $ */ /*- * Copyright (c) 1996, 1997 Theo de Raadt (OpenBSD). All rights reserved. @@ -247,7 +247,7 @@ main(int argc, char *argv[]) } endpwent(); - if (pledge("stdio rpath inet proc", NULL) == -1) + if (pledge("stdio inet proc", NULL) == -1) err(1, "pledge"); if (svc_register(xprt, PMAPPROG, PMAPVERS, reg_service, FALSE) == 0) { @@ -609,7 +609,7 @@ callit(struct svc_req *rqstp, SVCXPRT *xprt) return; } - if (pledge("stdio rpath inet", NULL) == -1) + if (pledge("stdio inet", NULL) == -1) err(1, "pledge"); port = pml->pml_map.pm_port; -- 2.20.1