potentially modify pledge() to permit /etc/protocols (/etc/rpc?
/etc/services? etc) without requiring a rpath attribute.. but where would
we draw the line for what /etc files libc functions need? At present, we
draw that line closer to the minimum.
issue found by theo@math.ethz.ch
-/* $OpenBSD: kdump.c,v 1.113 2015/10/09 01:37:08 deraadt Exp $ */
+/* $OpenBSD: kdump.c,v 1.114 2015/10/10 19:19:46 deraadt Exp $ */
/*-
* Copyright (c) 1988, 1993
if (!freopen(tracefile, "r", stdin))
err(1, "%s", tracefile);
- if (pledge("stdio getpw", NULL) == -1)
- err(1, "pledge");
-
if (fread_tail(&ktr_header, sizeof(struct ktr_header), 1) == 0 ||
ktr_header.ktr_type != htobe32(KTR_START))
errx(1, "%s: not a dump", tracefile);