Differences From Artifact [089353e353]:
- File utils/ofhttp/OFHTTP.m — part of check-in [1e07e91324] at 2020-12-15 19:16:22 on branch trunk — ofhttp: Avoid passing nil to OF_LOCALIZED (user: js, size: 29389) [annotate] [blame] [check-ins using] [more...]
To Artifact [8920dc599a]:
- File
utils/ofhttp/OFHTTP.m
— part of check-in
[510628432f]
at
2020-12-22 13:16:28
on branch 1.0
— Make OFSandbox private
It is unclear whether the same API can be applied to other sandboxing
frameworks. (user: js, size: 29395) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
445 446 447 448 449 450 451 | sandbox.allowsIPSockets = true; sandbox.allowsDNS = true; sandbox.allowsUserDatabaseReading = true; sandbox.allowsTTY = true; /* Dropped after parsing options */ sandbox.allowsUnveil = true; | | | 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 | sandbox.allowsIPSockets = true; sandbox.allowsDNS = true; sandbox.allowsUserDatabaseReading = true; sandbox.allowsTTY = true; /* Dropped after parsing options */ sandbox.allowsUnveil = true; [OFApplication of_activateSandbox: sandbox]; #endif #ifndef OF_AMIGAOS [OFLocale addLanguageDirectory: @LANGUAGE_DIR]; #else [OFLocale addLanguageDirectory: @"PROGDIR:/share/ofhttp/lang"]; #endif |
︙ | ︙ | |||
535 536 537 538 539 540 541 | ? outputPath : OF_PATH_CURRENT_DIRECTORY) permissions: (_continue ? @"rwc" : @"wc")]; /* In case we use ObjOpenSSL for https later */ [sandbox unveilPath: @"/etc/ssl" permissions: @"r"]; sandbox.allowsUnveil = false; | | | 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 | ? outputPath : OF_PATH_CURRENT_DIRECTORY) permissions: (_continue ? @"rwc" : @"wc")]; /* In case we use ObjOpenSSL for https later */ [sandbox unveilPath: @"/etc/ssl" permissions: @"r"]; sandbox.allowsUnveil = false; [OFApplication of_activateSandbox: sandbox]; #endif _outputPath = [outputPath copy]; _URLs = [optionsParser.remainingArguments copy]; if (_URLs.count < 1) help(of_stderr, false, 1); |
︙ | ︙ |