=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/top/top.c,v retrieving revision 1.83 retrieving revision 1.84 diff -u -r1.83 -r1.84 --- src/usr.bin/top/top.c 2015/05/06 07:53:29 1.83 +++ src/usr.bin/top/top.c 2015/10/23 03:26:24 1.84 @@ -1,4 +1,4 @@ -/* $OpenBSD: top.c,v 1.83 2015/05/06 07:53:29 mpi Exp $ */ +/* $OpenBSD: top.c,v 1.84 2015/10/23 03:26:24 deraadt Exp $ */ /* * Top users/processes display for Unix @@ -327,6 +327,9 @@ i = preset_argc; preset_argc = 0; } while (i != 0); + + if (pledge("abort stdio rpath tty ps vminfo", NULL) == -1) + err(1, "pledge"); /* set constants for username/uid display correctly */ if (!do_unames) {