mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-28 13:43:45 +03:00
Userland: Pledge wpath & cpath in strace
...while we open the output file.
This commit is contained in:
parent
72125827da
commit
7f98aaa65a
Notes:
sideshowbarker
2024-07-18 18:42:32 +09:00
Author: https://github.com/bugaevc Commit: https://github.com/SerenityOS/serenity/commit/7f98aaa65a0 Pull-request: https://github.com/SerenityOS/serenity/pull/6853
@ -32,7 +32,7 @@ static void handle_sigint(int)
|
||||
|
||||
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");
|
||||
return 1;
|
||||
}
|
||||
@ -60,6 +60,11 @@ int main(int argc, char** argv)
|
||||
trace_file = open_result.value();
|
||||
}
|
||||
|
||||
if (pledge("stdio proc exec ptrace sigaction", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
int status;
|
||||
if (g_pid == -1) {
|
||||
if (child_argv.is_empty()) {
|
||||
|
Loading…
Reference in New Issue
Block a user