1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-30 15:28:11 +00:00

HackStudio: add exec pledge

This commit is contained in:
joshua stein 2020-01-15 20:47:26 -06:00 committed by Andreas Kling
parent d063a4ccf3
commit 376fece51e

View file

@ -97,14 +97,14 @@ bool make_is_available();
int main(int argc, char** argv) 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"); perror("pledge");
return 1; return 1;
} }
GApplication app(argc, argv); GApplication app(argc, argv);
if (pledge("stdio tty rpath cpath wpath shared_buffer proc fattr", nullptr) < 0) { if (pledge("stdio tty rpath cpath wpath shared_buffer proc exec fattr", nullptr) < 0) {
perror("pledge"); perror("pledge");
return 1; return 1;
} }