mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:07:35 +00:00
Debugger: Add pledges
This commit is contained in:
parent
3e9a7175d1
commit
479348c9e7
2 changed files with 5 additions and 3 deletions
|
@ -77,7 +77,6 @@ OwnPtr<DebugSession> DebugSession::exec_and_attach(const String& command)
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TOOD: do we actually need this waitpid?
|
|
||||||
if (waitpid(pid, nullptr, WSTOPPED) != pid) {
|
if (waitpid(pid, nullptr, WSTOPPED) != pid) {
|
||||||
perror("waitpid");
|
perror("waitpid");
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
|
@ -159,8 +159,11 @@ void print_help()
|
||||||
|
|
||||||
int main(int argc, char** argv)
|
int main(int argc, char** argv)
|
||||||
{
|
{
|
||||||
// TODO: pledge & unveil
|
if (pledge("stdio proc exec rpath", nullptr) < 0) {
|
||||||
// TODO: check that strace still works
|
perror("pledge");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
if (argc == 1)
|
if (argc == 1)
|
||||||
return usage();
|
return usage();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue