mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
HackStudio: add exec pledge
This commit is contained in:
parent
d063a4ccf3
commit
376fece51e
Notes:
sideshowbarker
2024-07-19 10:01:52 +09:00
Author: https://github.com/jcs
Commit: 376fece51e
Pull-request: https://github.com/SerenityOS/serenity/pull/1084
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue