the only fs access kdump(1) needs is to the tracefile which by default is
authormestre <mestre@openbsd.org>
Sat, 11 Aug 2018 11:01:37 +0000 (11:01 +0000)
committermestre <mestre@openbsd.org>
Sat, 11 Aug 2018 11:01:37 +0000 (11:01 +0000)
commit23bc116ea67fb0007aa9ae03f6f78b38ab005d8d
tree2417dd4195b67b9602e3a912984ebf6e8890eb2f
parent0444232b427cbb47da3092ff0f3dc649dfeb764d
the only fs access kdump(1) needs is to the tracefile which by default is
ktrace.out unless argument -f is used. We can just unveil(2) that file with read
permissions before the pledge(2) call.

OK deraadt@
usr.bin/kdump/kdump.c