diff options
author | 2015-11-26 19:03:10 +0000 | |
---|---|---|
committer | 2015-11-26 19:03:10 +0000 | |
commit | 123b50946e11a616fd7d09540b18b58cc56f9d3b (patch) | |
tree | d38dd6efdc000a149a47f1d3721c701b892f6b26 /usr.sbin/installboot/installboot.c | |
parent | Delete YP password related code. As a result, these can also be (diff) | |
download | wireguard-openbsd-123b50946e11a616fd7d09540b18b58cc56f9d3b.tar.xz wireguard-openbsd-123b50946e11a616fd7d09540b18b58cc56f9d3b.zip |
Apply pledge.
The people I asked to review this did not get back to me, so
we will test this a different way.
Diffstat (limited to 'usr.sbin/installboot/installboot.c')
-rw-r--r-- | usr.sbin/installboot/installboot.c | 5 |
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) { |