Differences From Artifact [db83d4326f]:
- File
src/OFApplication.m
— part of check-in
[d71abc5366]
at
2018-08-17 01:17:14
on branch trunk
— AmigaOS 4: Do not use libauto
libauto loads the libraries too late. (user: js, size: 13019) [annotate] [blame] [check-ins using]
To Artifact [e8c3d87532]:
- File src/OFApplication.m — part of check-in [648522a4e6] at 2018-11-04 16:24:41 on branch trunk — OFSandbox: Add support for unveil() (user: js, size: 14327) [annotate] [blame] [check-ins using]
︙ | |||
25 26 27 28 29 30 31 | 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | - - - - - - - + + + + + + + + + | #include <errno.h> #include <signal.h> #include "unistd_wrapper.h" #import "OFApplication.h" |
︙ | |||
152 153 154 155 156 157 158 | 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 | - + + + + + | [delegate release]; return 0; } @implementation OFApplication @synthesize programName = _programName, arguments = _arguments; |
︙ | |||
199 200 201 202 203 204 205 206 207 208 209 210 211 212 | 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 | + + + + + | } #ifdef OF_HAVE_SANDBOX + (void)activateSandbox: (OFSandbox *)sandbox { [app activateSandbox: sandbox]; } + (void)activateSandboxForExecdProcesses: (OFSandbox *)sandbox { [app activateSandboxForExecdProcesses: sandbox]; } #endif - (instancetype)init { OF_INVALID_INIT_METHOD } |
︙ | |||
579 580 581 582 583 584 585 586 | 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 | + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | } #ifdef OF_HAVE_SANDBOX - (void)activateSandbox: (OFSandbox *)sandbox { # ifdef OF_HAVE_PLEDGE void *pool = objc_autoreleasePoolPush(); of_string_encoding_t encoding = [OFLocale encoding]; const char *promises = [[sandbox pledgeString] |