1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:57:35 +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:
Andreas Kling 2020-01-11 23:19:30 +01:00
parent b39e732eb3
commit f187374c1b
5 changed files with 9 additions and 7 deletions

View file

@ -136,7 +136,7 @@ RefPtr<GWindow> create_settings_window(TerminalWidget& terminal, RefPtr<CConfigF
int main(int argc, char** argv)
{
if (pledge("stdio tty rpath cpath wpath shared_buffer proc unix fattr", nullptr) < 0) {
if (pledge("stdio tty rpath cpath wpath shared_buffer proc exec unix fattr", nullptr) < 0) {
perror("pledge");
return 1;
}
@ -153,7 +153,7 @@ int main(int argc, char** argv)
GApplication app(argc, argv);
if (pledge("stdio tty rpath cpath wpath shared_buffer proc unix", nullptr) < 0) {
if (pledge("stdio tty rpath cpath wpath shared_buffer proc exec unix", nullptr) < 0) {
perror("pledge");
return 1;
}