summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsemarie <semarie@openbsd.org>2015-10-12 04:02:57 +0000
committersemarie <semarie@openbsd.org>2015-10-12 04:02:57 +0000
commit0462adfa7630b7b6f2b9cb54b4949dff93b3010c (patch)
tree33c55ff8fdb423e9b31ae642ca31f94b92754c5d
parentpledge to only use "stdio rpath"; rpath is for readig the wtmp files. (diff)
downloadwireguard-openbsd-0462adfa7630b7b6f2b9cb54b4949dff93b3010c.tar.xz
wireguard-openbsd-0462adfa7630b7b6f2b9cb54b4949dff93b3010c.zip
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@
-rw-r--r--usr.sbin/acpidump/acpidump.c4
1 files 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 <iwasaki@FreeBSD.org>
* 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();