mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:57:43 +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
|
@ -5,14 +5,14 @@
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio shared_buffer proc rpath unix cpath fattr", nullptr) < 0) {
|
||||
if (pledge("stdio shared_buffer proc exec rpath unix cpath fattr", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
GApplication app(argc, argv);
|
||||
|
||||
if (pledge("stdio shared_buffer proc rpath unix", nullptr) < 0) {
|
||||
if (pledge("stdio shared_buffer proc exec rpath unix", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue