diff options
author | tb <tb@openbsd.org> | 2019-12-05 11:21:58 +0000 |
---|---|---|
committer | tb <tb@openbsd.org> | 2019-12-05 11:21:58 +0000 |
commit | c535a554d723db4514e8c6557b531b56468ae696 (patch) | |
tree | 8a45c2aed561bb98f76e6cf54ee0703832a5f7e2 /usr.sbin/rpki-client | |
parent | Convert infinite sleeps to tsleep_nsec(9). (diff) | |
download | wireguard-openbsd-c535a554d723db4514e8c6557b531b56468ae696.tar.xz wireguard-openbsd-c535a554d723db4514e8c6557b531b56468ae696.zip |
No need to unveil(NULL, NULL) right before pledge "stdio rpath".
From George Brown.
ok benno
Diffstat (limited to 'usr.sbin/rpki-client')
-rw-r--r-- | usr.sbin/rpki-client/main.c | 4 |
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); |