mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 09:09:43 +00:00
Debugger: Add pledges
This commit is contained in:
parent
3e9a7175d1
commit
479348c9e7
Notes:
sideshowbarker
2024-07-19 07:38:50 +09:00
Author: https://github.com/itamar8910
Commit: 479348c9e7
Pull-request: https://github.com/SerenityOS/serenity/pull/1745
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/awesomekling
2 changed files with 5 additions and 3 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue