summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authornatano <natano@cvs.openbsd.org>2016-03-06 13:40:24 +0000
committernatano <natano@cvs.openbsd.org>2016-03-06 13:40:24 +0000
commitadf9b623049667a3c41def4d886e19382943a362 (patch)
tree7d9b6a6c69f9f404b5d302daa5ad3d73bab7c7a9 /sbin
parent829b4a72cc7d0d5b650461921d2b3f748e016e34 (diff)
Tighten mknod pledge().
The wpath, cpath and fattr promises are not required for calling mknod(2), dpath is enough. ok semarie@ testing and ok tb@
Diffstat (limited to 'sbin')
-rw-r--r--sbin/mknod/mknod.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/mknod/mknod.c b/sbin/mknod/mknod.c
index 1e7c7b09a1d..879a46aaa8a 100644
--- a/sbin/mknod/mknod.c
+++ b/sbin/mknod/mknod.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mknod.c,v 1.25 2016/03/05 21:15:41 espie Exp $ */
+/* $OpenBSD: mknod.c,v 1.26 2016/03/06 13:40:23 natano Exp $ */
/* $NetBSD: mknod.c,v 1.8 1995/08/11 00:08:18 jtc Exp $ */
/*
@@ -52,7 +52,7 @@ main(int argc, char *argv[])
void *set;
int ch;
- if (pledge("stdio rpath wpath cpath dpath fattr", NULL) == -1)
+ if (pledge("stdio rpath dpath", NULL) == -1)
err(1, "pledge");
setlocale(LC_ALL, "");