diff options
author | millert <> | 2015-10-16 13:37:44 +0000 |
---|---|---|
committer | millert <> | 2015-10-16 13:37:44 +0000 |
commit | a936d3e4fe0ff69d5cef124c166985f2a8eee328 (patch) | |
tree | e2b6f95b1c52d5e7708939bb2adeceae94b45fed /src | |
parent | 02ad63fa5e293fc483857a17a196414b082a686b (diff) | |
download | openbsd-a936d3e4fe0ff69d5cef124c166985f2a8eee328.tar.gz openbsd-a936d3e4fe0ff69d5cef124c166985f2a8eee328.tar.bz2 openbsd-a936d3e4fe0ff69d5cef124c166985f2a8eee328.zip |
Implement real "flock" request and add it to userland programs that
use pledge and file locking. OK deraadt@
Diffstat (limited to 'src')
-rw-r--r-- | src/usr.bin/openssl/openssl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr.bin/openssl/openssl.c b/src/usr.bin/openssl/openssl.c index e842d6cc65..43f0e9189c 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.17 2015/10/10 22:28:51 doug Exp $ */ | 1 | /* $OpenBSD: openssl.c,v 1.18 2015/10/16 13:37:44 millert 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 | * |
@@ -438,7 +438,7 @@ main(int argc, char **argv) | |||
438 | arg.data = NULL; | 438 | arg.data = NULL; |
439 | arg.count = 0; | 439 | arg.count = 0; |
440 | 440 | ||
441 | if (pledge("stdio inet rpath wpath cpath proc", NULL) == -1) { | 441 | if (pledge("stdio inet rpath wpath cpath proc flock", NULL) == -1) { |
442 | fprintf(stderr, "openssl: pledge: %s\n", strerror(errno)); | 442 | fprintf(stderr, "openssl: pledge: %s\n", strerror(errno)); |
443 | exit(1); | 443 | exit(1); |
444 | } | 444 | } |