From: semarie Date: Mon, 12 Oct 2015 04:02:57 +0000 (+0000) Subject: with the RPATH enforcement, acpidump(1) don't work anymore... X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=0462adfa7630b7b6f2b9cb54b4949dff93b3010c;p=openbsd 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@ --- 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();