diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-11-24 01:01:57 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-11-24 01:01:57 +0000 |
commit | 9aef8da6b234503ba634a00e495d2a6dc0d56174 (patch) | |
tree | fa0c7cc7a3e76e84f89b1b7c3130857210e6d85c /sbin | |
parent | 01855cf6f0088427f16427ad37ab7c6f90a9b8b8 (diff) |
pledge "stdio rpath wpath disklabel proc exec" throughout, after
krw's refactorings which hoisted disk-opening to the top.
tested by krw
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/fdisk/fdisk.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sbin/fdisk/fdisk.c b/sbin/fdisk/fdisk.c index 9ab7fea10b0..40b83ca3770 100644 --- a/sbin/fdisk/fdisk.c +++ b/sbin/fdisk/fdisk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fdisk.c,v 1.94 2015/11/19 17:52:56 krw Exp $ */ +/* $OpenBSD: fdisk.c,v 1.95 2015/11/24 01:01:56 deraadt Exp $ */ /* * Copyright (c) 1997 Tobias Weingartner @@ -83,6 +83,10 @@ main(int argc, char *argv[]) struct dos_mbr dos_mbr; struct mbr mbr; + /* "proc exec" for man page display */ + if (pledge("stdio rpath wpath disklabel proc exec", NULL) == -1) + err(1, "pledge"); + while ((ch = getopt(argc, argv, "ieguf:c:h:s:l:b:y")) != -1) { const char *errstr; |