mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:07:35 +00:00
Userland: Pledge wpath & cpath in strace
...while we open the output file.
This commit is contained in:
parent
72125827da
commit
7f98aaa65a
1 changed files with 6 additions and 1 deletions
|
@ -32,7 +32,7 @@ static void handle_sigint(int)
|
||||||
|
|
||||||
int main(int argc, char** argv)
|
int main(int argc, char** argv)
|
||||||
{
|
{
|
||||||
if (pledge("stdio proc exec ptrace sigaction", nullptr) < 0) {
|
if (pledge("stdio wpath cpath proc exec ptrace sigaction", nullptr) < 0) {
|
||||||
perror("pledge");
|
perror("pledge");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -60,6 +60,11 @@ int main(int argc, char** argv)
|
||||||
trace_file = open_result.value();
|
trace_file = open_result.value();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (pledge("stdio proc exec ptrace sigaction", nullptr) < 0) {
|
||||||
|
perror("pledge");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
int status;
|
int status;
|
||||||
if (g_pid == -1) {
|
if (g_pid == -1) {
|
||||||
if (child_argv.is_empty()) {
|
if (child_argv.is_empty()) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue