with the RPATH enforcement, acpidump(1) don't work anymore...
authorsemarie <semarie@openbsd.org>
Mon, 12 Oct 2015 04:02:57 +0000 (04:02 +0000)
committersemarie <semarie@openbsd.org>
Mon, 12 Oct 2015 04:02:57 +0000 (04:02 +0000)
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

index a3248b1..24746a5 100644 (file)
@@ -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();