summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2019-12-05 11:21:59 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2019-12-05 11:21:59 +0000
commit066bbaf75567f23ca4ae894d83b78b3fb9b35e12 (patch)
tree50bbd710d1255d84b02b39d9f2245f7383a0985c
parenta55c9c65959f723a879eddc06cab900eacc31e84 (diff)
No need to unveil(NULL, NULL) right before pledge "stdio rpath".
From George Brown. ok benno
-rw-r--r--usr.sbin/rpki-client/main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.sbin/rpki-client/main.c b/usr.sbin/rpki-client/main.c
index f05ec1c5837..e9a16a493f2 100644
--- a/usr.sbin/rpki-client/main.c
+++ b/usr.sbin/rpki-client/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.53 2019/12/04 12:40:17 deraadt Exp $ */
+/* $OpenBSD: main.c,v 1.54 2019/12/05 11:21:58 tb Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -1498,8 +1498,6 @@ main(int argc, char *argv[])
/* Only allow access to BASE_DIR. */
if (unveil(BASE_DIR, "r") == -1)
err(1, "%s: unveil", BASE_DIR);
- if (unveil(NULL, NULL) == -1)
- err(1, "unveil");
if (pledge("stdio rpath", NULL) == -1)
err(1, "pledge");
proc_parser(fd[0], force);