diff options
author | deraadt <> | 2017-01-20 08:57:12 +0000 |
---|---|---|
committer | deraadt <> | 2017-01-20 08:57:12 +0000 |
commit | 240aac1f315f7a1134e54770c8318611366ccd9c (patch) | |
tree | 2d20c8800211c4286dbb8a45bc5377c8e2454c76 | |
parent | 660b133d2ddd60402238de2263b92f90608f99f0 (diff) | |
download | openbsd-240aac1f315f7a1134e54770c8318611366ccd9c.tar.gz openbsd-240aac1f315f7a1134e54770c8318611366ccd9c.tar.bz2 openbsd-240aac1f315f7a1134e54770c8318611366ccd9c.zip |
rearrange pledge promises into the canonical order; easier to eyeball
39 files changed, 77 insertions, 77 deletions
diff --git a/src/usr.bin/openssl/asn1pars.c b/src/usr.bin/openssl/asn1pars.c index 4fbae55861..fe66b35937 100644 --- a/src/usr.bin/openssl/asn1pars.c +++ b/src/usr.bin/openssl/asn1pars.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: asn1pars.c,v 1.6 2015/10/17 15:00:11 doug Exp $ */ | 1 | /* $OpenBSD: asn1pars.c,v 1.7 2017/01/20 08:57:11 deraadt Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -248,7 +248,7 @@ asn1parse_main(int argc, char **argv) | |||
248 | ASN1_TYPE *at = NULL; | 248 | ASN1_TYPE *at = NULL; |
249 | 249 | ||
250 | if (single_execution) { | 250 | if (single_execution) { |
251 | if (pledge("stdio rpath wpath cpath", NULL) == -1) { | 251 | if (pledge("stdio cpath wpath rpath", NULL) == -1) { |
252 | perror("pledge"); | 252 | perror("pledge"); |
253 | exit(1); | 253 | exit(1); |
254 | } | 254 | } |
diff --git a/src/usr.bin/openssl/ca.c b/src/usr.bin/openssl/ca.c index 04d7c5ceaa..a3e779da33 100644 --- a/src/usr.bin/openssl/ca.c +++ b/src/usr.bin/openssl/ca.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ca.c,v 1.22 2016/08/31 11:42:09 deraadt Exp $ */ | 1 | /* $OpenBSD: ca.c,v 1.23 2017/01/20 08:57:11 deraadt Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -285,7 +285,7 @@ ca_main(int argc, char **argv) | |||
285 | DB_ATTR db_attr; | 285 | DB_ATTR db_attr; |
286 | 286 | ||
287 | if (single_execution) { | 287 | if (single_execution) { |
288 | if (pledge("stdio rpath wpath cpath tty", NULL) == -1) { | 288 | if (pledge("stdio cpath wpath rpath tty", NULL) == -1) { |
289 | perror("pledge"); | 289 | perror("pledge"); |
290 | exit(1); | 290 | exit(1); |
291 | } | 291 | } |
diff --git a/src/usr.bin/openssl/certhash.c b/src/usr.bin/openssl/certhash.c index 842c184ad1..fdd719ea48 100644 --- a/src/usr.bin/openssl/certhash.c +++ b/src/usr.bin/openssl/certhash.c | |||
@@ -649,7 +649,7 @@ certhash_main(int argc, char **argv) | |||
649 | int i, cwdfd, ret = 0; | 649 | int i, cwdfd, ret = 0; |
650 | 650 | ||
651 | if (single_execution) { | 651 | if (single_execution) { |
652 | if (pledge("stdio rpath wpath cpath", NULL) == -1) { | 652 | if (pledge("stdio cpath wpath rpath", NULL) == -1) { |
653 | perror("pledge"); | 653 | perror("pledge"); |
654 | exit(1); | 654 | exit(1); |
655 | } | 655 | } |
diff --git a/src/usr.bin/openssl/crl.c b/src/usr.bin/openssl/crl.c index 9c9efa02a0..bb7ff62775 100644 --- a/src/usr.bin/openssl/crl.c +++ b/src/usr.bin/openssl/crl.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: crl.c,v 1.9 2015/10/17 15:00:11 doug Exp $ */ | 1 | /* $OpenBSD: crl.c,v 1.10 2017/01/20 08:57:11 deraadt Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -231,7 +231,7 @@ crl_main(int argc, char **argv) | |||
231 | char *digest_name = NULL; | 231 | char *digest_name = NULL; |
232 | 232 | ||
233 | if (single_execution) { | 233 | if (single_execution) { |
234 | if (pledge("stdio rpath wpath cpath", NULL) == -1) { | 234 | if (pledge("stdio cpath wpath rpath", NULL) == -1) { |
235 | perror("pledge"); | 235 | perror("pledge"); |
236 | exit(1); | 236 | exit(1); |
237 | } | 237 | } |
diff --git a/src/usr.bin/openssl/crl2p7.c b/src/usr.bin/openssl/crl2p7.c index 5ce4e97c60..9fceee8098 100644 --- a/src/usr.bin/openssl/crl2p7.c +++ b/src/usr.bin/openssl/crl2p7.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: crl2p7.c,v 1.6 2015/10/17 15:00:11 doug Exp $ */ | 1 | /* $OpenBSD: crl2p7.c,v 1.7 2017/01/20 08:57:11 deraadt Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -170,7 +170,7 @@ crl2pkcs7_main(int argc, char **argv) | |||
170 | int ret = 1; | 170 | int ret = 1; |
171 | 171 | ||
172 | if (single_execution) { | 172 | if (single_execution) { |
173 | if (pledge("stdio rpath wpath cpath", NULL) == -1) { | 173 | if (pledge("stdio cpath wpath rpath", NULL) == -1) { |
174 | perror("pledge"); | 174 | perror("pledge"); |
175 | exit(1); | 175 | exit(1); |
176 | } | 176 | } |
diff --git a/src/usr.bin/openssl/dgst.c b/src/usr.bin/openssl/dgst.c index a03409e212..ce50e08b53 100644 --- a/src/usr.bin/openssl/dgst.c +++ b/src/usr.bin/openssl/dgst.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dgst.c,v 1.9 2015/10/17 15:00:11 doug Exp $ */ | 1 | /* $OpenBSD: dgst.c,v 1.10 2017/01/20 08:57:11 deraadt Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -124,7 +124,7 @@ dgst_main(int argc, char **argv) | |||
124 | STACK_OF(OPENSSL_STRING) * sigopts = NULL, *macopts = NULL; | 124 | STACK_OF(OPENSSL_STRING) * sigopts = NULL, *macopts = NULL; |
125 | 125 | ||
126 | if (single_execution) { | 126 | if (single_execution) { |
127 | if (pledge("stdio rpath wpath cpath tty", NULL) == -1) { | 127 | if (pledge("stdio cpath wpath rpath tty", NULL) == -1) { |
128 | perror("pledge"); | 128 | perror("pledge"); |
129 | exit(1); | 129 | exit(1); |
130 | } | 130 | } |
diff --git a/src/usr.bin/openssl/dh.c b/src/usr.bin/openssl/dh.c index e3d8eca5f9..eb51b4b12f 100644 --- a/src/usr.bin/openssl/dh.c +++ b/src/usr.bin/openssl/dh.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dh.c,v 1.8 2015/10/17 15:00:11 doug Exp $ */ | 1 | /* $OpenBSD: dh.c,v 1.9 2017/01/20 08:57:11 deraadt Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -159,7 +159,7 @@ dh_main(int argc, char **argv) | |||
159 | int ret = 1; | 159 | int ret = 1; |
160 | 160 | ||
161 | if (single_execution) { | 161 | if (single_execution) { |
162 | if (pledge("stdio rpath wpath cpath", NULL) == -1) { | 162 | if (pledge("stdio cpath wpath rpath", NULL) == -1) { |
163 | perror("pledge"); | 163 | perror("pledge"); |
164 | exit(1); | 164 | exit(1); |
165 | } | 165 | } |
diff --git a/src/usr.bin/openssl/dhparam.c b/src/usr.bin/openssl/dhparam.c index 1f8bdaed2a..7c3bfb44c8 100644 --- a/src/usr.bin/openssl/dhparam.c +++ b/src/usr.bin/openssl/dhparam.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dhparam.c,v 1.8 2015/10/17 15:00:11 doug Exp $ */ | 1 | /* $OpenBSD: dhparam.c,v 1.9 2017/01/20 08:57:11 deraadt Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -244,7 +244,7 @@ dhparam_main(int argc, char **argv) | |||
244 | int i; | 244 | int i; |
245 | 245 | ||
246 | if (single_execution) { | 246 | if (single_execution) { |
247 | if (pledge("stdio rpath wpath cpath", NULL) == -1) { | 247 | if (pledge("stdio cpath wpath rpath", NULL) == -1) { |
248 | perror("pledge"); | 248 | perror("pledge"); |
249 | exit(1); | 249 | exit(1); |
250 | } | 250 | } |
diff --git a/src/usr.bin/openssl/dsa.c b/src/usr.bin/openssl/dsa.c index 3ca174a1e9..5e0301c734 100644 --- a/src/usr.bin/openssl/dsa.c +++ b/src/usr.bin/openssl/dsa.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dsa.c,v 1.8 2015/10/17 15:00:11 doug Exp $ */ | 1 | /* $OpenBSD: dsa.c,v 1.9 2017/01/20 08:57:11 deraadt Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -241,7 +241,7 @@ dsa_main(int argc, char **argv) | |||
241 | char *passin = NULL, *passout = NULL; | 241 | char *passin = NULL, *passout = NULL; |
242 | 242 | ||
243 | if (single_execution) { | 243 | if (single_execution) { |
244 | if (pledge("stdio rpath wpath cpath tty", NULL) == -1) { | 244 | if (pledge("stdio cpath wpath rpath tty", NULL) == -1) { |
245 | perror("pledge"); | 245 | perror("pledge"); |
246 | exit(1); | 246 | exit(1); |
247 | } | 247 | } |
diff --git a/src/usr.bin/openssl/dsaparam.c b/src/usr.bin/openssl/dsaparam.c index 37b9a68693..46efd5d453 100644 --- a/src/usr.bin/openssl/dsaparam.c +++ b/src/usr.bin/openssl/dsaparam.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dsaparam.c,v 1.7 2015/10/17 15:00:11 doug Exp $ */ | 1 | /* $OpenBSD: dsaparam.c,v 1.8 2017/01/20 08:57:12 deraadt Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -169,7 +169,7 @@ dsaparam_main(int argc, char **argv) | |||
169 | char *strbits = NULL; | 169 | char *strbits = NULL; |
170 | 170 | ||
171 | if (single_execution) { | 171 | if (single_execution) { |
172 | if (pledge("stdio rpath wpath cpath", NULL) == -1) { | 172 | if (pledge("stdio cpath wpath rpath", NULL) == -1) { |
173 | perror("pledge"); | 173 | perror("pledge"); |
174 | exit(1); | 174 | exit(1); |
175 | } | 175 | } |
diff --git a/src/usr.bin/openssl/ec.c b/src/usr.bin/openssl/ec.c index fe58e1357d..e557990cb9 100644 --- a/src/usr.bin/openssl/ec.c +++ b/src/usr.bin/openssl/ec.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ec.c,v 1.8 2015/10/17 15:00:11 doug Exp $ */ | 1 | /* $OpenBSD: ec.c,v 1.9 2017/01/20 08:57:12 deraadt Exp $ */ |
2 | /* | 2 | /* |
3 | * Written by Nils Larsch for the OpenSSL project. | 3 | * Written by Nils Larsch for the OpenSSL project. |
4 | */ | 4 | */ |
@@ -278,7 +278,7 @@ ec_main(int argc, char **argv) | |||
278 | char *passin = NULL, *passout = NULL; | 278 | char *passin = NULL, *passout = NULL; |
279 | 279 | ||
280 | if (single_execution) { | 280 | if (single_execution) { |
281 | if (pledge("stdio rpath wpath cpath tty", NULL) == -1) { | 281 | if (pledge("stdio cpath wpath rpath tty", NULL) == -1) { |
282 | perror("pledge"); | 282 | perror("pledge"); |
283 | exit(1); | 283 | exit(1); |
284 | } | 284 | } |
diff --git a/src/usr.bin/openssl/ecparam.c b/src/usr.bin/openssl/ecparam.c index a4a400f88a..6c497bd355 100644 --- a/src/usr.bin/openssl/ecparam.c +++ b/src/usr.bin/openssl/ecparam.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ecparam.c,v 1.15 2015/10/17 15:00:11 doug Exp $ */ | 1 | /* $OpenBSD: ecparam.c,v 1.16 2017/01/20 08:57:12 deraadt Exp $ */ |
2 | /* | 2 | /* |
3 | * Written by Nils Larsch for the OpenSSL project. | 3 | * Written by Nils Larsch for the OpenSSL project. |
4 | */ | 4 | */ |
@@ -260,7 +260,7 @@ ecparam_main(int argc, char **argv) | |||
260 | int i, ret = 1; | 260 | int i, ret = 1; |
261 | 261 | ||
262 | if (single_execution) { | 262 | if (single_execution) { |
263 | if (pledge("stdio rpath wpath cpath", NULL) == -1) { | 263 | if (pledge("stdio cpath wpath rpath", NULL) == -1) { |
264 | perror("pledge"); | 264 | perror("pledge"); |
265 | exit(1); | 265 | exit(1); |
266 | } | 266 | } |
diff --git a/src/usr.bin/openssl/enc.c b/src/usr.bin/openssl/enc.c index 4c6de096fd..195dc2fc44 100644 --- a/src/usr.bin/openssl/enc.c +++ b/src/usr.bin/openssl/enc.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: enc.c,v 1.11 2016/04/07 20:02:19 jmc Exp $ */ | 1 | /* $OpenBSD: enc.c,v 1.12 2017/01/20 08:57:12 deraadt Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -339,7 +339,7 @@ enc_main(int argc, char **argv) | |||
339 | int i; | 339 | int i; |
340 | 340 | ||
341 | if (single_execution) { | 341 | if (single_execution) { |
342 | if (pledge("stdio rpath wpath cpath tty", NULL) == -1) { | 342 | if (pledge("stdio cpath wpath rpath tty", NULL) == -1) { |
343 | perror("pledge"); | 343 | perror("pledge"); |
344 | exit(1); | 344 | exit(1); |
345 | } | 345 | } |
diff --git a/src/usr.bin/openssl/gendh.c b/src/usr.bin/openssl/gendh.c index 235fbdee38..7c037f44e1 100644 --- a/src/usr.bin/openssl/gendh.c +++ b/src/usr.bin/openssl/gendh.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: gendh.c,v 1.7 2015/10/17 15:00:11 doug Exp $ */ | 1 | /* $OpenBSD: gendh.c,v 1.8 2017/01/20 08:57:12 deraadt Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -135,7 +135,7 @@ gendh_main(int argc, char **argv) | |||
135 | char *strbits = NULL; | 135 | char *strbits = NULL; |
136 | 136 | ||
137 | if (single_execution) { | 137 | if (single_execution) { |
138 | if (pledge("stdio rpath wpath cpath", NULL) == -1) { | 138 | if (pledge("stdio cpath wpath rpath", NULL) == -1) { |
139 | perror("pledge"); | 139 | perror("pledge"); |
140 | exit(1); | 140 | exit(1); |
141 | } | 141 | } |
diff --git a/src/usr.bin/openssl/gendsa.c b/src/usr.bin/openssl/gendsa.c index c73aa34399..5aeb294e7f 100644 --- a/src/usr.bin/openssl/gendsa.c +++ b/src/usr.bin/openssl/gendsa.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: gendsa.c,v 1.7 2015/10/17 15:00:11 doug Exp $ */ | 1 | /* $OpenBSD: gendsa.c,v 1.8 2017/01/20 08:57:12 deraadt Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -86,7 +86,7 @@ gendsa_main(int argc, char **argv) | |||
86 | const EVP_CIPHER *enc = NULL; | 86 | const EVP_CIPHER *enc = NULL; |
87 | 87 | ||
88 | if (single_execution) { | 88 | if (single_execution) { |
89 | if (pledge("stdio rpath wpath cpath tty", NULL) == -1) { | 89 | if (pledge("stdio cpath wpath rpath tty", NULL) == -1) { |
90 | perror("pledge"); | 90 | perror("pledge"); |
91 | exit(1); | 91 | exit(1); |
92 | } | 92 | } |
diff --git a/src/usr.bin/openssl/genpkey.c b/src/usr.bin/openssl/genpkey.c index 174ca5e4ba..cae7eacd4e 100644 --- a/src/usr.bin/openssl/genpkey.c +++ b/src/usr.bin/openssl/genpkey.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: genpkey.c,v 1.8 2015/10/17 15:00:11 doug Exp $ */ | 1 | /* $OpenBSD: genpkey.c,v 1.9 2017/01/20 08:57:12 deraadt Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project 2006 | 3 | * project 2006 |
4 | */ | 4 | */ |
@@ -87,7 +87,7 @@ genpkey_main(int argc, char **argv) | |||
87 | int do_param = 0; | 87 | int do_param = 0; |
88 | 88 | ||
89 | if (single_execution) { | 89 | if (single_execution) { |
90 | if (pledge("stdio rpath wpath cpath tty", NULL) == -1) { | 90 | if (pledge("stdio cpath wpath rpath tty", NULL) == -1) { |
91 | perror("pledge"); | 91 | perror("pledge"); |
92 | exit(1); | 92 | exit(1); |
93 | } | 93 | } |
diff --git a/src/usr.bin/openssl/genrsa.c b/src/usr.bin/openssl/genrsa.c index 951da4c7a7..4fa5747b28 100644 --- a/src/usr.bin/openssl/genrsa.c +++ b/src/usr.bin/openssl/genrsa.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: genrsa.c,v 1.8 2015/10/17 15:00:11 doug Exp $ */ | 1 | /* $OpenBSD: genrsa.c,v 1.9 2017/01/20 08:57:12 deraadt Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -101,7 +101,7 @@ genrsa_main(int argc, char **argv) | |||
101 | RSA *rsa = NULL; | 101 | RSA *rsa = NULL; |
102 | 102 | ||
103 | if (single_execution) { | 103 | if (single_execution) { |
104 | if (pledge("stdio rpath wpath cpath tty", NULL) == -1) { | 104 | if (pledge("stdio cpath wpath rpath tty", NULL) == -1) { |
105 | perror("pledge"); | 105 | perror("pledge"); |
106 | exit(1); | 106 | exit(1); |
107 | } | 107 | } |
diff --git a/src/usr.bin/openssl/nseq.c b/src/usr.bin/openssl/nseq.c index be64668da0..4669147416 100644 --- a/src/usr.bin/openssl/nseq.c +++ b/src/usr.bin/openssl/nseq.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: nseq.c,v 1.6 2015/10/17 15:00:11 doug Exp $ */ | 1 | /* $OpenBSD: nseq.c,v 1.7 2017/01/20 08:57:12 deraadt Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project 1999. | 3 | * project 1999. |
4 | */ | 4 | */ |
@@ -110,7 +110,7 @@ nseq_main(int argc, char **argv) | |||
110 | int i, ret = 1; | 110 | int i, ret = 1; |
111 | 111 | ||
112 | if (single_execution) { | 112 | if (single_execution) { |
113 | if (pledge("stdio rpath wpath cpath", NULL) == -1) { | 113 | if (pledge("stdio cpath wpath rpath", NULL) == -1) { |
114 | perror("pledge"); | 114 | perror("pledge"); |
115 | exit(1); | 115 | exit(1); |
116 | } | 116 | } |
diff --git a/src/usr.bin/openssl/ocsp.c b/src/usr.bin/openssl/ocsp.c index 82ea07aeee..47f9817c36 100644 --- a/src/usr.bin/openssl/ocsp.c +++ b/src/usr.bin/openssl/ocsp.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ocsp.c,v 1.10 2017/01/20 08:14:55 beck Exp $ */ | 1 | /* $OpenBSD: ocsp.c,v 1.11 2017/01/20 08:57:12 deraadt Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project 2000. | 3 | * project 2000. |
4 | */ | 4 | */ |
@@ -147,7 +147,7 @@ ocsp_main(int argc, char **argv) | |||
147 | const char *errstr = NULL; | 147 | const char *errstr = NULL; |
148 | 148 | ||
149 | if (single_execution) { | 149 | if (single_execution) { |
150 | if (pledge("stdio inet dns rpath wpath cpath tty", NULL) == -1) { | 150 | if (pledge("stdio cpath wpath rpath inet dns tty", NULL) == -1) { |
151 | perror("pledge"); | 151 | perror("pledge"); |
152 | exit(1); | 152 | exit(1); |
153 | } | 153 | } |
diff --git a/src/usr.bin/openssl/openssl.c b/src/usr.bin/openssl/openssl.c index 0ac9bc08b8..346b1d83c7 100644 --- a/src/usr.bin/openssl/openssl.c +++ b/src/usr.bin/openssl/openssl.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: openssl.c,v 1.24 2016/09/04 18:19:53 beck Exp $ */ | 1 | /* $OpenBSD: openssl.c,v 1.25 2017/01/20 08:57:12 deraadt Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -435,7 +435,7 @@ main(int argc, char **argv) | |||
435 | arg.data = NULL; | 435 | arg.data = NULL; |
436 | arg.count = 0; | 436 | arg.count = 0; |
437 | 437 | ||
438 | if (pledge("stdio inet dns rpath wpath cpath proc flock tty", NULL) == -1) { | 438 | if (pledge("stdio cpath wpath rpath inet dns proc flock tty", NULL) == -1) { |
439 | fprintf(stderr, "openssl: pledge: %s\n", strerror(errno)); | 439 | fprintf(stderr, "openssl: pledge: %s\n", strerror(errno)); |
440 | exit(1); | 440 | exit(1); |
441 | } | 441 | } |
diff --git a/src/usr.bin/openssl/passwd.c b/src/usr.bin/openssl/passwd.c index 04da52ee68..af5360448c 100644 --- a/src/usr.bin/openssl/passwd.c +++ b/src/usr.bin/openssl/passwd.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: passwd.c,v 1.7 2015/10/17 15:00:11 doug Exp $ */ | 1 | /* $OpenBSD: passwd.c,v 1.8 2017/01/20 08:57:12 deraadt Exp $ */ |
2 | 2 | ||
3 | #if defined OPENSSL_NO_MD5 | 3 | #if defined OPENSSL_NO_MD5 |
4 | #define NO_MD5CRYPT_1 | 4 | #define NO_MD5CRYPT_1 |
@@ -146,7 +146,7 @@ passwd_main(int argc, char **argv) | |||
146 | int ret = 1; | 146 | int ret = 1; |
147 | 147 | ||
148 | if (single_execution) { | 148 | if (single_execution) { |
149 | if (pledge("stdio rpath wpath cpath tty", NULL) == -1) { | 149 | if (pledge("stdio cpath wpath rpath tty", NULL) == -1) { |
150 | perror("pledge"); | 150 | perror("pledge"); |
151 | exit(1); | 151 | exit(1); |
152 | } | 152 | } |
diff --git a/src/usr.bin/openssl/pkcs12.c b/src/usr.bin/openssl/pkcs12.c index 51a5747b4e..69d2d0a950 100644 --- a/src/usr.bin/openssl/pkcs12.c +++ b/src/usr.bin/openssl/pkcs12.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: pkcs12.c,v 1.8 2016/12/30 15:59:58 jsing Exp $ */ | 1 | /* $OpenBSD: pkcs12.c,v 1.9 2017/01/20 08:57:12 deraadt Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project. | 3 | * project. |
4 | */ | 4 | */ |
@@ -125,7 +125,7 @@ pkcs12_main(int argc, char **argv) | |||
125 | char *CApath = NULL, *CAfile = NULL; | 125 | char *CApath = NULL, *CAfile = NULL; |
126 | 126 | ||
127 | if (single_execution) { | 127 | if (single_execution) { |
128 | if (pledge("stdio rpath wpath cpath tty", NULL) == -1) { | 128 | if (pledge("stdio cpath wpath rpath tty", NULL) == -1) { |
129 | perror("pledge"); | 129 | perror("pledge"); |
130 | exit(1); | 130 | exit(1); |
131 | } | 131 | } |
diff --git a/src/usr.bin/openssl/pkcs7.c b/src/usr.bin/openssl/pkcs7.c index 382a8bfa2c..32d1682ff1 100644 --- a/src/usr.bin/openssl/pkcs7.c +++ b/src/usr.bin/openssl/pkcs7.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: pkcs7.c,v 1.8 2015/10/17 15:00:11 doug Exp $ */ | 1 | /* $OpenBSD: pkcs7.c,v 1.9 2017/01/20 08:57:12 deraadt Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -155,7 +155,7 @@ pkcs7_main(int argc, char **argv) | |||
155 | int i; | 155 | int i; |
156 | 156 | ||
157 | if (single_execution) { | 157 | if (single_execution) { |
158 | if (pledge("stdio rpath wpath cpath", NULL) == -1) { | 158 | if (pledge("stdio cpath wpath rpath", NULL) == -1) { |
159 | perror("pledge"); | 159 | perror("pledge"); |
160 | exit(1); | 160 | exit(1); |
161 | } | 161 | } |
diff --git a/src/usr.bin/openssl/pkcs8.c b/src/usr.bin/openssl/pkcs8.c index 9c620c8619..5d1c2023af 100644 --- a/src/usr.bin/openssl/pkcs8.c +++ b/src/usr.bin/openssl/pkcs8.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: pkcs8.c,v 1.9 2015/10/17 15:00:11 doug Exp $ */ | 1 | /* $OpenBSD: pkcs8.c,v 1.10 2017/01/20 08:57:12 deraadt Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project 1999-2004. | 3 | * project 1999-2004. |
4 | */ | 4 | */ |
@@ -227,7 +227,7 @@ pkcs8_main(int argc, char **argv) | |||
227 | int ret = 1; | 227 | int ret = 1; |
228 | 228 | ||
229 | if (single_execution) { | 229 | if (single_execution) { |
230 | if (pledge("stdio rpath wpath cpath tty", NULL) == -1) { | 230 | if (pledge("stdio cpath wpath rpath tty", NULL) == -1) { |
231 | perror("pledge"); | 231 | perror("pledge"); |
232 | exit(1); | 232 | exit(1); |
233 | } | 233 | } |
diff --git a/src/usr.bin/openssl/pkey.c b/src/usr.bin/openssl/pkey.c index 9c38d0ee3c..e91bc79090 100644 --- a/src/usr.bin/openssl/pkey.c +++ b/src/usr.bin/openssl/pkey.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: pkey.c,v 1.8 2015/10/17 15:00:11 doug Exp $ */ | 1 | /* $OpenBSD: pkey.c,v 1.9 2017/01/20 08:57:12 deraadt Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project 2006 | 3 | * project 2006 |
4 | */ | 4 | */ |
@@ -80,7 +80,7 @@ pkey_main(int argc, char **argv) | |||
80 | int ret = 1; | 80 | int ret = 1; |
81 | 81 | ||
82 | if (single_execution) { | 82 | if (single_execution) { |
83 | if (pledge("stdio rpath wpath cpath tty", NULL) == -1) { | 83 | if (pledge("stdio cpath wpath rpath tty", NULL) == -1) { |
84 | perror("pledge"); | 84 | perror("pledge"); |
85 | exit(1); | 85 | exit(1); |
86 | } | 86 | } |
diff --git a/src/usr.bin/openssl/pkeyparam.c b/src/usr.bin/openssl/pkeyparam.c index a8a40d2b4f..698c105141 100644 --- a/src/usr.bin/openssl/pkeyparam.c +++ b/src/usr.bin/openssl/pkeyparam.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: pkeyparam.c,v 1.9 2015/10/17 15:00:11 doug Exp $ */ | 1 | /* $OpenBSD: pkeyparam.c,v 1.10 2017/01/20 08:57:12 deraadt Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project 2006 | 3 | * project 2006 |
4 | */ | 4 | */ |
@@ -119,7 +119,7 @@ pkeyparam_main(int argc, char **argv) | |||
119 | int ret = 1; | 119 | int ret = 1; |
120 | 120 | ||
121 | if (single_execution) { | 121 | if (single_execution) { |
122 | if (pledge("stdio rpath wpath cpath", NULL) == -1) { | 122 | if (pledge("stdio cpath wpath rpath", NULL) == -1) { |
123 | perror("pledge"); | 123 | perror("pledge"); |
124 | exit(1); | 124 | exit(1); |
125 | } | 125 | } |
diff --git a/src/usr.bin/openssl/pkeyutl.c b/src/usr.bin/openssl/pkeyutl.c index 4bfb5420f9..4752b4c79a 100644 --- a/src/usr.bin/openssl/pkeyutl.c +++ b/src/usr.bin/openssl/pkeyutl.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: pkeyutl.c,v 1.10 2015/10/17 15:00:11 doug Exp $ */ | 1 | /* $OpenBSD: pkeyutl.c,v 1.11 2017/01/20 08:57:12 deraadt Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project 2006. | 3 | * project 2006. |
4 | */ | 4 | */ |
@@ -101,7 +101,7 @@ pkeyutl_main(int argc, char **argv) | |||
101 | int ret = 1, rv = -1; | 101 | int ret = 1, rv = -1; |
102 | 102 | ||
103 | if (single_execution) { | 103 | if (single_execution) { |
104 | if (pledge("stdio rpath wpath cpath tty", NULL) == -1) { | 104 | if (pledge("stdio cpath wpath rpath tty", NULL) == -1) { |
105 | perror("pledge"); | 105 | perror("pledge"); |
106 | exit(1); | 106 | exit(1); |
107 | } | 107 | } |
diff --git a/src/usr.bin/openssl/rand.c b/src/usr.bin/openssl/rand.c index 5f21bbc11c..04105bc46e 100644 --- a/src/usr.bin/openssl/rand.c +++ b/src/usr.bin/openssl/rand.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: rand.c,v 1.10 2015/10/17 15:00:11 doug Exp $ */ | 1 | /* $OpenBSD: rand.c,v 1.11 2017/01/20 08:57:12 deraadt Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 1998-2001 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1998-2001 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
@@ -110,7 +110,7 @@ rand_main(int argc, char **argv) | |||
110 | BIO *out = NULL; | 110 | BIO *out = NULL; |
111 | 111 | ||
112 | if (single_execution) { | 112 | if (single_execution) { |
113 | if (pledge("stdio rpath wpath cpath", NULL) == -1) { | 113 | if (pledge("stdio cpath wpath rpath", NULL) == -1) { |
114 | perror("pledge"); | 114 | perror("pledge"); |
115 | exit(1); | 115 | exit(1); |
116 | } | 116 | } |
diff --git a/src/usr.bin/openssl/req.c b/src/usr.bin/openssl/req.c index e264870374..352e38b226 100644 --- a/src/usr.bin/openssl/req.c +++ b/src/usr.bin/openssl/req.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: req.c,v 1.13 2015/11/14 14:53:14 miod Exp $ */ | 1 | /* $OpenBSD: req.c,v 1.14 2017/01/20 08:57:12 deraadt Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -177,7 +177,7 @@ req_main(int argc, char **argv) | |||
177 | unsigned long chtype = MBSTRING_ASC; | 177 | unsigned long chtype = MBSTRING_ASC; |
178 | 178 | ||
179 | if (single_execution) { | 179 | if (single_execution) { |
180 | if (pledge("stdio rpath wpath cpath tty", NULL) == -1) { | 180 | if (pledge("stdio cpath wpath rpath tty", NULL) == -1) { |
181 | perror("pledge"); | 181 | perror("pledge"); |
182 | exit(1); | 182 | exit(1); |
183 | } | 183 | } |
diff --git a/src/usr.bin/openssl/rsa.c b/src/usr.bin/openssl/rsa.c index 54482ab9f0..7ad1da13b2 100644 --- a/src/usr.bin/openssl/rsa.c +++ b/src/usr.bin/openssl/rsa.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: rsa.c,v 1.8 2015/10/17 15:00:11 doug Exp $ */ | 1 | /* $OpenBSD: rsa.c,v 1.9 2017/01/20 08:57:12 deraadt Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -269,7 +269,7 @@ rsa_main(int argc, char **argv) | |||
269 | char *passin = NULL, *passout = NULL; | 269 | char *passin = NULL, *passout = NULL; |
270 | 270 | ||
271 | if (single_execution) { | 271 | if (single_execution) { |
272 | if (pledge("stdio rpath wpath cpath tty", NULL) == -1) { | 272 | if (pledge("stdio cpath wpath rpath tty", NULL) == -1) { |
273 | perror("pledge"); | 273 | perror("pledge"); |
274 | exit(1); | 274 | exit(1); |
275 | } | 275 | } |
diff --git a/src/usr.bin/openssl/rsautl.c b/src/usr.bin/openssl/rsautl.c index 3a5290845a..48f739135a 100644 --- a/src/usr.bin/openssl/rsautl.c +++ b/src/usr.bin/openssl/rsautl.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: rsautl.c,v 1.10 2015/10/17 15:00:11 doug Exp $ */ | 1 | /* $OpenBSD: rsautl.c,v 1.11 2017/01/20 08:57:12 deraadt Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project 2000. | 3 | * project 2000. |
4 | */ | 4 | */ |
@@ -99,7 +99,7 @@ rsautl_main(int argc, char **argv) | |||
99 | int ret = 1; | 99 | int ret = 1; |
100 | 100 | ||
101 | if (single_execution) { | 101 | if (single_execution) { |
102 | if (pledge("stdio rpath wpath cpath tty", NULL) == -1) { | 102 | if (pledge("stdio cpath wpath rpath tty", NULL) == -1) { |
103 | perror("pledge"); | 103 | perror("pledge"); |
104 | exit(1); | 104 | exit(1); |
105 | } | 105 | } |
diff --git a/src/usr.bin/openssl/s_client.c b/src/usr.bin/openssl/s_client.c index 78909873b8..f335da66e0 100644 --- a/src/usr.bin/openssl/s_client.c +++ b/src/usr.bin/openssl/s_client.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: s_client.c,v 1.29 2016/12/30 17:25:48 jsing Exp $ */ | 1 | /* $OpenBSD: s_client.c,v 1.30 2017/01/20 08:57:12 deraadt Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -365,7 +365,7 @@ s_client_main(int argc, char **argv) | |||
365 | long socket_mtu = 0; | 365 | long socket_mtu = 0; |
366 | 366 | ||
367 | if (single_execution) { | 367 | if (single_execution) { |
368 | if (pledge("stdio inet dns rpath wpath cpath tty", NULL) == -1) { | 368 | if (pledge("stdio cpath wpath rpath inet dns tty", NULL) == -1) { |
369 | perror("pledge"); | 369 | perror("pledge"); |
370 | exit(1); | 370 | exit(1); |
371 | } | 371 | } |
diff --git a/src/usr.bin/openssl/s_server.c b/src/usr.bin/openssl/s_server.c index a3200c8e9f..d73a11799b 100644 --- a/src/usr.bin/openssl/s_server.c +++ b/src/usr.bin/openssl/s_server.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: s_server.c,v 1.24 2015/12/23 20:43:42 mmcc Exp $ */ | 1 | /* $OpenBSD: s_server.c,v 1.25 2017/01/20 08:57:12 deraadt Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -605,7 +605,7 @@ s_server_main(int argc, char *argv[]) | |||
605 | tlsextalpnctx alpn_ctx = { NULL, 0 }; | 605 | tlsextalpnctx alpn_ctx = { NULL, 0 }; |
606 | 606 | ||
607 | if (single_execution) { | 607 | if (single_execution) { |
608 | if (pledge("stdio inet dns rpath tty", NULL) == -1) { | 608 | if (pledge("stdio rpath inet dns tty", NULL) == -1) { |
609 | perror("pledge"); | 609 | perror("pledge"); |
610 | exit(1); | 610 | exit(1); |
611 | } | 611 | } |
diff --git a/src/usr.bin/openssl/s_time.c b/src/usr.bin/openssl/s_time.c index a88df1bfe2..3644e108f8 100644 --- a/src/usr.bin/openssl/s_time.c +++ b/src/usr.bin/openssl/s_time.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: s_time.c,v 1.16 2016/08/30 14:34:59 deraadt Exp $ */ | 1 | /* $OpenBSD: s_time.c,v 1.17 2017/01/20 08:57:12 deraadt Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -254,7 +254,7 @@ s_time_main(int argc, char **argv) | |||
254 | int ver; | 254 | int ver; |
255 | 255 | ||
256 | if (single_execution) { | 256 | if (single_execution) { |
257 | if (pledge("stdio inet rpath", NULL) == -1) { | 257 | if (pledge("stdio rpath inet", NULL) == -1) { |
258 | perror("pledge"); | 258 | perror("pledge"); |
259 | exit(1); | 259 | exit(1); |
260 | } | 260 | } |
diff --git a/src/usr.bin/openssl/sess_id.c b/src/usr.bin/openssl/sess_id.c index d0f367d4b7..3670f5404f 100644 --- a/src/usr.bin/openssl/sess_id.c +++ b/src/usr.bin/openssl/sess_id.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sess_id.c,v 1.7 2015/10/17 15:00:11 doug Exp $ */ | 1 | /* $OpenBSD: sess_id.c,v 1.8 2017/01/20 08:57:12 deraadt Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -159,7 +159,7 @@ sess_id_main(int argc, char **argv) | |||
159 | BIO *out = NULL; | 159 | BIO *out = NULL; |
160 | 160 | ||
161 | if (single_execution) { | 161 | if (single_execution) { |
162 | if (pledge("stdio rpath wpath cpath", NULL) == -1) { | 162 | if (pledge("stdio cpath wpath rpath", NULL) == -1) { |
163 | perror("pledge"); | 163 | perror("pledge"); |
164 | exit(1); | 164 | exit(1); |
165 | } | 165 | } |
diff --git a/src/usr.bin/openssl/smime.c b/src/usr.bin/openssl/smime.c index 92027ba99a..847ee133b6 100644 --- a/src/usr.bin/openssl/smime.c +++ b/src/usr.bin/openssl/smime.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: smime.c,v 1.7 2015/10/17 15:00:11 doug Exp $ */ | 1 | /* $OpenBSD: smime.c,v 1.8 2017/01/20 08:57:12 deraadt Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project. | 3 | * project. |
4 | */ | 4 | */ |
@@ -113,7 +113,7 @@ smime_main(int argc, char **argv) | |||
113 | X509_VERIFY_PARAM *vpm = NULL; | 113 | X509_VERIFY_PARAM *vpm = NULL; |
114 | 114 | ||
115 | if (single_execution) { | 115 | if (single_execution) { |
116 | if (pledge("stdio rpath wpath cpath tty", NULL) == -1) { | 116 | if (pledge("stdio cpath wpath rpath tty", NULL) == -1) { |
117 | perror("pledge"); | 117 | perror("pledge"); |
118 | exit(1); | 118 | exit(1); |
119 | } | 119 | } |
diff --git a/src/usr.bin/openssl/spkac.c b/src/usr.bin/openssl/spkac.c index 426ea13431..77f3e3479c 100644 --- a/src/usr.bin/openssl/spkac.c +++ b/src/usr.bin/openssl/spkac.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: spkac.c,v 1.8 2015/10/17 15:00:11 doug Exp $ */ | 1 | /* $OpenBSD: spkac.c,v 1.9 2017/01/20 08:57:12 deraadt Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project 1999. Based on an original idea by Massimiliano Pala | 3 | * project 1999. Based on an original idea by Massimiliano Pala |
4 | * (madwolf@openca.org). | 4 | * (madwolf@openca.org). |
@@ -182,7 +182,7 @@ spkac_main(int argc, char **argv) | |||
182 | EVP_PKEY *pkey = NULL; | 182 | EVP_PKEY *pkey = NULL; |
183 | 183 | ||
184 | if (single_execution) { | 184 | if (single_execution) { |
185 | if (pledge("stdio rpath wpath cpath tty", NULL) == -1) { | 185 | if (pledge("stdio cpath wpath rpath tty", NULL) == -1) { |
186 | perror("pledge"); | 186 | perror("pledge"); |
187 | exit(1); | 187 | exit(1); |
188 | } | 188 | } |
diff --git a/src/usr.bin/openssl/ts.c b/src/usr.bin/openssl/ts.c index 781ab33368..28462430a2 100644 --- a/src/usr.bin/openssl/ts.c +++ b/src/usr.bin/openssl/ts.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ts.c,v 1.13 2015/10/17 15:00:11 doug Exp $ */ | 1 | /* $OpenBSD: ts.c,v 1.14 2017/01/20 08:57:12 deraadt Exp $ */ |
2 | /* Written by Zoltan Glozik (zglozik@stones.com) for the OpenSSL | 2 | /* Written by Zoltan Glozik (zglozik@stones.com) for the OpenSSL |
3 | * project 2002. | 3 | * project 2002. |
4 | */ | 4 | */ |
@@ -150,7 +150,7 @@ ts_main(int argc, char **argv) | |||
150 | int token_out = 0; | 150 | int token_out = 0; |
151 | 151 | ||
152 | if (single_execution) { | 152 | if (single_execution) { |
153 | if (pledge("stdio rpath wpath cpath tty", NULL) == -1) { | 153 | if (pledge("stdio cpath wpath rpath tty", NULL) == -1) { |
154 | perror("pledge"); | 154 | perror("pledge"); |
155 | exit(1); | 155 | exit(1); |
156 | } | 156 | } |
diff --git a/src/usr.bin/openssl/x509.c b/src/usr.bin/openssl/x509.c index 3daea89141..f43b015684 100644 --- a/src/usr.bin/openssl/x509.c +++ b/src/usr.bin/openssl/x509.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509.c,v 1.13 2016/12/30 16:28:53 jsing Exp $ */ | 1 | /* $OpenBSD: x509.c,v 1.14 2017/01/20 08:57:12 deraadt Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -199,7 +199,7 @@ x509_main(int argc, char **argv) | |||
199 | const char *errstr = NULL; | 199 | const char *errstr = NULL; |
200 | 200 | ||
201 | if (single_execution) { | 201 | if (single_execution) { |
202 | if (pledge("stdio rpath wpath cpath tty", NULL) == -1) { | 202 | if (pledge("stdio cpath wpath rpath tty", NULL) == -1) { |
203 | perror("pledge"); | 203 | perror("pledge"); |
204 | exit(1); | 204 | exit(1); |
205 | } | 205 | } |