summaryrefslogtreecommitdiffstats
path: root/usr.sbin/installboot/installboot.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/installboot/installboot.c')
-rw-r--r--usr.sbin/installboot/installboot.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/installboot/installboot.c b/usr.sbin/installboot/installboot.c
index 50d027355c1..33e33a7be8e 100644
--- a/usr.sbin/installboot/installboot.c
+++ b/usr.sbin/installboot/installboot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: installboot.c,v 1.9 2015/10/14 00:19:04 krw Exp $ */
+/* $OpenBSD: installboot.c,v 1.10 2015/11/26 19:03:10 deraadt Exp $ */
/*
* Copyright (c) 2012, 2013 Joel Sing <jsing@openbsd.org>
@@ -51,6 +51,9 @@ main(int argc, char **argv)
char *dev, *realdev;
int devfd, opt;
+ if (pledge("stdio rpath wpath cpath fattr disklabel", NULL) == -1)
+ err(1, "pledge");
+
md_init();
while ((opt = getopt(argc, argv, "nr:v")) != -1) {