rpath is to access /etc/rpc, and inet to talk to portmap & local world.
ok beck
-/* $OpenBSD: ypcat.c,v 1.16 2015/02/08 23:40:35 deraadt Exp $ */
+/* $OpenBSD: ypcat.c,v 1.17 2015/10/10 21:08:09 deraadt Exp $ */
/*
* Copyright (c) 1992, 1993, 1996 Theo de Raadt <deraadt@theos.com>
extern int optind;
int notrans, c, r, i;
+ if (pledge("stdio rpath inet", NULL) == -1)
+ perror("pledge");
+
notrans = key = 0;
while ((c=getopt(argc, argv, "xd:kt")) != -1)
switch (c) {