From 14972b8ff04ef6eab478357dc406a36ae41b59be Mon Sep 17 00:00:00 2001 From: deraadt Date: Mon, 12 Oct 2015 05:59:43 +0000 Subject: [PATCH] biff pledges to only do "stdio rpath fattr tty". (very small program.. the actual order of use is tty, rpath, stdio or fattr) --- usr.bin/biff/biff.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr.bin/biff/biff.c b/usr.bin/biff/biff.c index 1af7fd2b539..6f0e07d352d 100644 --- a/usr.bin/biff/biff.c +++ b/usr.bin/biff/biff.c @@ -1,4 +1,4 @@ -/* $OpenBSD: biff.c,v 1.11 2009/10/27 23:59:36 deraadt Exp $ */ +/* $OpenBSD: biff.c,v 1.12 2015/10/12 05:59:43 deraadt Exp $ */ /* $NetBSD: biff.c,v 1.3 1995/03/26 02:34:22 glass Exp $ */ /* @@ -49,6 +49,8 @@ main(int argc, char *argv[]) int ch; char *name; + if (pledge("stdio rpath fattr tty", NULL) == -1) + err(1, "pledge"); while ((ch = getopt(argc, argv, "")) != -1) switch(ch) { -- 2.20.1