short lived, we either go directly exiting the program or just a few lines
below we call pledge(2) again, where it actually should be, and with really
reduced promises. Next commit will restrict further access to the filesystem
through unveil(2).
OK deraadt@ kn@
-/* $OpenBSD: getent.c,v 1.14 2016/02/01 19:57:28 jca Exp $ */
+/* $OpenBSD: getent.c,v 1.15 2018/09/25 06:43:20 mestre Exp $ */
/* $NetBSD: getent.c,v 1.7 2005/08/24 14:31:02 ginsbach Exp $ */
/*-
{
struct getentdb *curdb;
- if (pledge("stdio dns rpath getpw", NULL) == -1)
- err(1, "pledge");
-
if (argc < 2)
usage();
for (curdb = databases; curdb->name != NULL; curdb++) {