From 18cdc26982103640b171cb7ffc6bb8b153c21dc1 Mon Sep 17 00:00:00 2001 From: deraadt Date: Mon, 5 Oct 2015 13:30:30 +0000 Subject: tame "stdio rpath" or tame "stdio" suffices for all of these programs. fairly easy to audit by running nm and noticing nothing beyond base stdio except for fopen/freopen. Then review all callpaths to those functions, and place the tame() calls. ok sthen --- usr.bin/diff3/diff3prog.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'usr.bin/diff3/diff3prog.c') diff --git a/usr.bin/diff3/diff3prog.c b/usr.bin/diff3/diff3prog.c index 86d836e59d5..921da78a548 100644 --- a/usr.bin/diff3/diff3prog.c +++ b/usr.bin/diff3/diff3prog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: diff3prog.c,v 1.15 2015/09/05 09:47:08 jsg Exp $ */ +/* $OpenBSD: diff3prog.c,v 1.16 2015/10/05 13:30:30 deraadt Exp $ */ /* * Copyright (C) Caldera International Inc. 2001-2002. @@ -145,6 +145,9 @@ main(int argc, char **argv) { int ch, i, m, n; + if (tame("stdio rpath", NULL) == -1) + err(1, "tame"); + eflag = 0; oflag = 0; while ((ch = getopt(argc, argv, "EeXx3")) != -1) { -- cgit v1.2.3-59-g8ed1b