From 0462adfa7630b7b6f2b9cb54b4949dff93b3010c Mon Sep 17 00:00:00 2001 From: semarie Date: Mon, 12 Oct 2015 04:02:57 +0000 Subject: [PATCH] with the RPATH enforcement, acpidump(1) don't work anymore... it needs rpath for reading /dev/mem (at least): kvm_openfiles(NULL, NULL, NULL, O_RDONLY, NULL) ok doug@ fix the regression deraadt@ --- usr.sbin/acpidump/acpidump.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/acpidump/acpidump.c b/usr.sbin/acpidump/acpidump.c index a3248b12cbc..24746a5ae57 100644 --- a/usr.sbin/acpidump/acpidump.c +++ b/usr.sbin/acpidump/acpidump.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpidump.c,v 1.15 2015/10/09 01:37:09 deraadt Exp $ */ +/* $OpenBSD: acpidump.c,v 1.16 2015/10/12 04:02:57 semarie Exp $ */ /* * Copyright (c) 2000 Mitsuru IWASAKI * All rights reserved. @@ -533,7 +533,7 @@ asl_dump_from_devmem(void) acpi_user_init(); - if (pledge("stdio wpath cpath", NULL) == -1) + if (pledge("stdio rpath wpath cpath", NULL) == -1) err(1, "pledge"); rp = acpi_find_rsd_ptr(); -- 2.20.1