Debugger: Add pledges

This commit is contained in:
Itamar 2020-04-11 16:36:55 +03:00 committed by Andreas Kling
commit 479348c9e7
Notes: sideshowbarker 2024-07-19 07:38:50 +09:00
2 changed files with 5 additions and 3 deletions

View file

@ -159,8 +159,11 @@ void print_help()
int main(int argc, char** argv)
{
// TODO: pledge & unveil
// TODO: check that strace still works
if (pledge("stdio proc exec rpath", nullptr) < 0) {
perror("pledge");
return 1;
}
if (argc == 1)
return usage();