mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:58:12 +00:00
Kernel: fork()ed children should inherit pledge promises :^)
Update various places that now need wider promises as they are not reset by fork() anymore.
This commit is contained in:
parent
b39e732eb3
commit
f187374c1b
5 changed files with 9 additions and 7 deletions
|
@ -10,7 +10,7 @@
|
|||
|
||||
int main(int, char**)
|
||||
{
|
||||
if (pledge("stdio shared_buffer rpath wpath cpath unix proc fattr", nullptr) < 0) {
|
||||
if (pledge("stdio shared_buffer rpath wpath cpath unix proc exec fattr", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
@ -35,7 +35,7 @@ int main(int, char**)
|
|||
|
||||
WSEventLoop loop;
|
||||
|
||||
if (pledge("stdio shared_buffer rpath wpath cpath unix proc", nullptr) < 0) {
|
||||
if (pledge("stdio shared_buffer rpath wpath cpath unix proc exec", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue