Everywhere: Drop "shared_buffer" in most GUI programs, pledge "recvfd"
Now that WindowServer broadcasts the system theme using an anonymous file, we need clients to pledge "recvfd" so they can receive it. Some programs keep the "shared_buffer" pledge since it's still used for a handful of things.
This commit is contained in:
parent
d846808122
commit
d312011708
Notes:
sideshowbarker
2024-07-18 23:10:53 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/d312011708e
59 changed files with 112 additions and 111 deletions
|
@ -33,14 +33,14 @@
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio sendfd shared_buffer accept rpath unix cpath fattr", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd accept rpath unix cpath fattr", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
if (pledge("stdio sendfd shared_buffer accept rpath", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd accept rpath", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -70,7 +70,7 @@ int main(int argc, char** argv)
|
|||
return 1;
|
||||
}
|
||||
|
||||
if (pledge("stdio sendfd shared_buffer accept unix cpath rpath wpath fattr sendfd recvfd", nullptr) < 0) {
|
||||
if (pledge("stdio shared_buffer recvfd sendfd accept unix cpath rpath wpath fattr", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
@ -96,7 +96,7 @@ int main(int argc, char** argv)
|
|||
return 1;
|
||||
}
|
||||
|
||||
if (pledge("stdio sendfd shared_buffer accept unix cpath rpath wpath sendfd recvfd", nullptr) < 0) {
|
||||
if (pledge("stdio shared_buffer recvfd sendfd accept unix cpath rpath wpath", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -36,14 +36,14 @@
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio sendfd shared_buffer rpath accept unix cpath fattr", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd rpath accept unix cpath fattr", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
if (pledge("stdio sendfd shared_buffer rpath accept", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd rpath accept", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -45,14 +45,14 @@
|
|||
int main(int argc, char** argv)
|
||||
{
|
||||
|
||||
if (pledge("stdio sendfd shared_buffer rpath accept unix cpath fattr", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd rpath accept unix cpath fattr", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
if (pledge("stdio sendfd shared_buffer rpath accept", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd rpath accept", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -108,7 +108,7 @@ static TitleAndText build_cpu_registers(const ELF::Core::ThreadInfo& thread_info
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio sendfd shared_buffer accept cpath rpath unix fattr", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd accept cpath rpath unix fattr", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
@ -153,7 +153,7 @@ int main(int argc, char** argv)
|
|||
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
if (pledge("stdio sendfd shared_buffer accept rpath unix", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd accept rpath unix", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -39,14 +39,14 @@
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio thread sendfd shared_buffer rpath accept cpath wpath unix fattr", nullptr) < 0) {
|
||||
if (pledge("stdio thread recvfd sendfd rpath accept cpath wpath unix fattr", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
if (pledge("stdio thread sendfd shared_buffer rpath accept cpath wpath", nullptr) < 0) {
|
||||
if (pledge("stdio thread recvfd sendfd rpath accept cpath wpath", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -80,7 +80,7 @@ static void show_properties(const String& container_dir_path, const String& path
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio thread sendfd shared_buffer accept unix cpath rpath wpath fattr proc exec sigaction", nullptr) < 0) {
|
||||
if (pledge("stdio thread recvfd sendfd accept unix cpath rpath wpath fattr proc exec sigaction", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
@ -99,7 +99,7 @@ int main(int argc, char** argv)
|
|||
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
if (pledge("stdio thread sendfd shared_buffer accept cpath rpath wpath fattr proc exec unix", nullptr) < 0) {
|
||||
if (pledge("stdio thread recvfd sendfd accept cpath rpath wpath fattr proc exec unix", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -44,14 +44,14 @@
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio sendfd shared_buffer thread rpath accept unix cpath wpath fattr unix", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd thread rpath accept unix cpath wpath fattr unix", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
if (pledge("stdio sendfd shared_buffer thread rpath accept cpath wpath unix", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd thread rpath accept cpath wpath unix", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
@ -64,7 +64,7 @@ int main(int argc, char** argv)
|
|||
return 1;
|
||||
}
|
||||
|
||||
if (pledge("stdio sendfd shared_buffer thread rpath accept cpath wpath", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd thread rpath accept cpath wpath", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -53,14 +53,14 @@
|
|||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
if (pledge("stdio sendfd shared_buffer accept rpath unix cpath fattr", nullptr) < 0) {
|
||||
if (pledge("stdio shared_buffer recvfd sendfd accept rpath unix cpath fattr", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
if (pledge("stdio sendfd shared_buffer accept rpath unix", nullptr) < 0) {
|
||||
if (pledge("stdio shared_buffer recvfd sendfd accept rpath unix", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -31,14 +31,14 @@
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio sendfd shared_buffer accept rpath unix cpath wpath fattr thread", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd accept rpath unix cpath wpath fattr thread", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
if (pledge("stdio sendfd shared_buffer accept rpath cpath wpath thread", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd accept rpath cpath wpath thread", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio inet dns unix sendfd shared_buffer cpath rpath fattr wpath cpath", nullptr) < 0) {
|
||||
if (pledge("stdio inet dns unix recvfd sendfd cpath rpath fattr wpath cpath", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
@ -45,7 +45,7 @@ int main(int argc, char** argv)
|
|||
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
if (pledge("stdio inet dns unix sendfd shared_buffer rpath wpath cpath", nullptr) < 0) {
|
||||
if (pledge("stdio inet dns unix recvfd sendfd rpath wpath cpath", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -40,14 +40,14 @@ int main(int argc, char** argv)
|
|||
args_parser.add_positional_argument(path, "Keyboard character mapping file.", "file", Core::ArgsParser::Required::No);
|
||||
args_parser.parse(argc, argv);
|
||||
|
||||
if (pledge("stdio thread rpath accept cpath wpath sendfd shared_buffer unix fattr", nullptr) < 0) {
|
||||
if (pledge("stdio thread rpath accept cpath wpath recvfd sendfd unix fattr", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
if (pledge("stdio thread rpath accept cpath wpath sendfd shared_buffer", nullptr) < 0) {
|
||||
if (pledge("stdio thread rpath accept cpath wpath recvfd sendfd", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio rpath accept cpath wpath sendfd shared_buffer unix fattr proc exec", nullptr) < 0) {
|
||||
if (pledge("stdio rpath accept cpath wpath recvfd sendfd unix fattr proc exec", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
@ -53,7 +53,7 @@ int main(int argc, char** argv)
|
|||
// If there is no command line parameter go for GUI.
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
if (pledge("stdio rpath accept sendfd shared_buffer proc exec", nullptr) < 0) {
|
||||
if (pledge("stdio rpath accept recvfd sendfd proc exec", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -42,14 +42,14 @@
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio cpath rpath sendfd shared_buffer unix fattr", nullptr) < 0) {
|
||||
if (pledge("stdio cpath rpath recvfd sendfd unix fattr", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
if (pledge("stdio cpath rpath sendfd shared_buffer", nullptr) < 0) {
|
||||
if (pledge("stdio cpath rpath recvfd sendfd", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -44,14 +44,14 @@
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio thread rpath accept cpath wpath sendfd shared_buffer unix fattr", nullptr) < 0) {
|
||||
if (pledge("stdio thread rpath accept cpath wpath recvfd sendfd unix fattr", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
if (pledge("stdio thread rpath accept cpath wpath sendfd shared_buffer unix", nullptr) < 0) {
|
||||
if (pledge("stdio thread rpath accept cpath wpath recvfd sendfd unix", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -53,14 +53,14 @@
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio thread sendfd shared_buffer accept rpath unix wpath cpath fattr", nullptr) < 0) {
|
||||
if (pledge("stdio thread recvfd sendfd accept rpath unix wpath cpath fattr", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
if (pledge("stdio thread sendfd shared_buffer accept rpath wpath cpath", nullptr) < 0) {
|
||||
if (pledge("stdio thread recvfd sendfd accept rpath wpath cpath", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -51,14 +51,14 @@
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio sendfd shared_buffer accept cpath rpath wpath unix cpath fattr proc exec thread", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd accept cpath rpath wpath unix cpath fattr proc exec thread", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
if (pledge("stdio sendfd shared_buffer accept cpath rpath wpath proc exec thread", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd accept cpath rpath wpath proc exec thread", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -34,14 +34,14 @@
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio sendfd shared_buffer accept cpath rpath unix fattr proc exec", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd accept cpath rpath unix fattr proc exec", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
if (pledge("stdio sendfd shared_buffer accept rpath unix proc exec", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd accept rpath unix proc exec", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -37,14 +37,14 @@
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio sendfd shared_buffer accept rpath thread unix cpath fattr", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd accept rpath thread unix cpath fattr", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
if (pledge("stdio sendfd shared_buffer accept rpath thread unix", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd accept rpath thread unix", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
@ -52,7 +52,7 @@ int main(int argc, char** argv)
|
|||
auto audio_client = Audio::ClientConnection::construct();
|
||||
audio_client->handshake();
|
||||
|
||||
if (pledge("stdio sendfd shared_buffer accept rpath thread", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd accept rpath thread", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -41,14 +41,14 @@
|
|||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
if (pledge("stdio sendfd shared_buffer accept rpath unix cpath wpath fattr thread", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd accept rpath unix cpath wpath fattr thread", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
if (pledge("stdio thread rpath accept cpath wpath sendfd shared_buffer unix", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd thread rpath accept cpath wpath unix", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -105,14 +105,14 @@ static bool can_access_pid(pid_t pid)
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio proc sendfd shared_buffer accept rpath exec unix cpath fattr", nullptr) < 0) {
|
||||
if (pledge("stdio proc recvfd sendfd accept rpath exec unix cpath fattr", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
if (pledge("stdio proc sendfd shared_buffer accept rpath exec", nullptr) < 0) {
|
||||
if (pledge("stdio proc recvfd sendfd accept rpath exec", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -303,7 +303,7 @@ static RefPtr<GUI::Window> create_find_window(TerminalWidget& terminal)
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio tty rpath accept cpath wpath sendfd shared_buffer proc exec unix fattr sigaction", nullptr) < 0) {
|
||||
if (pledge("stdio tty rpath accept cpath wpath recvfd sendfd proc exec unix fattr sigaction", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
@ -320,7 +320,7 @@ int main(int argc, char** argv)
|
|||
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
if (pledge("stdio tty rpath accept cpath wpath sendfd shared_buffer proc exec unix", nullptr) < 0) {
|
||||
if (pledge("stdio tty rpath accept cpath wpath recvfd sendfd proc exec unix", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -31,14 +31,14 @@
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio thread rpath accept cpath wpath sendfd shared_buffer unix fattr", nullptr) < 0) {
|
||||
if (pledge("stdio shared_buffer recvfd sendfd thread rpath accept cpath wpath unix fattr", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
if (pledge("stdio thread rpath accept cpath wpath sendfd shared_buffer unix", nullptr) < 0) {
|
||||
if (pledge("stdio shared_buffer recvfd sendfd thread rpath accept cpath wpath unix", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -67,14 +67,14 @@ private:
|
|||
int main(int argc, char** argv)
|
||||
{
|
||||
|
||||
if (pledge("stdio thread rpath accept cpath wpath sendfd shared_buffer unix fattr", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd thread rpath accept cpath wpath unix fattr", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
if (pledge("stdio thread rpath accept sendfd shared_buffer", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd thread rpath accept", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -113,14 +113,14 @@ static Optional<Vector<ContentPage>> parse_welcome_file(const String& path)
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio sendfd shared_buffer rpath unix cpath fattr", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd rpath unix cpath fattr", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
if (pledge("stdio sendfd shared_buffer rpath", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd rpath", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -194,7 +194,7 @@ private:
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio sendfd rpath wpath cpath sendfd shared_buffer accept unix fattr", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd rpath wpath cpath accept unix fattr", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
@ -202,7 +202,7 @@ int main(int argc, char** argv)
|
|||
auto app = GUI::Application::construct(argc, argv);
|
||||
auto app_icon = GUI::Icon::default_icon("app-catdog");
|
||||
|
||||
if (pledge("stdio sendfd rpath shared_buffer", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd rpath", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -193,7 +193,7 @@ int main(int argc, char** argv)
|
|||
{
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
if (pledge("stdio sendfd rpath shared_buffer", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd rpath", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -49,14 +49,14 @@ int main(int argc, char* argv[])
|
|||
args_parser.add_option(grid_columns, "Number of columns in grid (incompatible with --number)", "grid-cols", 'c', "number");
|
||||
args_parser.parse(argc, argv);
|
||||
|
||||
if (pledge("stdio sendfd shared_buffer accept rpath unix cpath wpath fattr thread", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd accept rpath unix cpath wpath fattr thread", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
if (pledge("stdio sendfd shared_buffer accept rpath cpath wpath thread", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd accept rpath cpath wpath thread", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -216,7 +216,7 @@ int main(int argc, char** argv)
|
|||
{
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
if (pledge("stdio sendfd rpath shared_buffer", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd rpath", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -200,7 +200,7 @@ int main(int argc, char** argv)
|
|||
{
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
if (pledge("stdio sendfd rpath shared_buffer", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd rpath", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -96,7 +96,7 @@ int main(int argc, char** argv)
|
|||
{
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
if (pledge("stdio sendfd rpath shared_buffer", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd rpath", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -174,7 +174,7 @@ int main(int argc, char** argv)
|
|||
auto app = GUI::Application::construct(argc, argv);
|
||||
auto app_icon = GUI::Icon::default_icon("app-mouse");
|
||||
|
||||
if (pledge("stdio sendfd rpath shared_buffer", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd rpath", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -124,14 +124,14 @@ void Screensaver::draw()
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio rpath wpath cpath sendfd shared_buffer cpath unix fattr", nullptr) < 0) {
|
||||
if (pledge("stdio rpath wpath cpath recvfd sendfd cpath unix fattr", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
if (pledge("stdio rpath sendfd shared_buffer", nullptr) < 0) {
|
||||
if (pledge("stdio rpath recvfd sendfd", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -86,7 +86,7 @@ int main(int argc, char** argv)
|
|||
{
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
if (pledge("stdio sendfd rpath shared_buffer", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd rpath", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -57,14 +57,14 @@ static void update_path_environment_variable();
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio tty accept rpath cpath wpath shared_buffer proc exec unix fattr thread unix sendfd ptrace", nullptr) < 0) {
|
||||
if (pledge("stdio shared_buffer recvfd sendfd tty accept rpath cpath wpath proc exec unix fattr thread unix ptrace", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
if (pledge("stdio tty accept rpath cpath wpath shared_buffer proc exec fattr thread unix sendfd ptrace", nullptr) < 0) {
|
||||
if (pledge("stdio shared_buffer recvfd sendfd tty accept rpath cpath wpath proc exec fattr thread unix ptrace", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -209,6 +209,7 @@ int main(int argc, char** argv)
|
|||
#include <AK/OwnPtr.h>
|
||||
#include <AK/URL.h>
|
||||
#include <AK/Utf8View.h>
|
||||
#include <LibCore/AnonymousBuffer.h>
|
||||
#include <LibGfx/Color.h>
|
||||
#include <LibGfx/Rect.h>
|
||||
#include <LibGfx/ShareableBitmap.h>
|
||||
|
|
|
@ -49,7 +49,7 @@ using namespace Inspector;
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio sendfd shared_buffer rpath accept unix cpath fattr", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd rpath accept unix cpath fattr", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
@ -143,7 +143,7 @@ int main(int argc, char** argv)
|
|||
window->show();
|
||||
remote_process.update();
|
||||
|
||||
if (pledge("stdio sendfd shared_buffer rpath accept unix", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd rpath accept unix", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -258,14 +258,14 @@ private:
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio thread sendfd shared_buffer accept cpath rpath wpath unix fattr", nullptr) < 0) {
|
||||
if (pledge("stdio thread recvfd sendfd accept cpath rpath wpath unix fattr", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
if (pledge("stdio thread sendfd shared_buffer accept rpath cpath wpath unix", nullptr) < 0) {
|
||||
if (pledge("stdio thread recvfd sendfd accept rpath cpath wpath unix", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
@ -278,7 +278,7 @@ int main(int argc, char** argv)
|
|||
return 1;
|
||||
}
|
||||
|
||||
if (pledge("stdio thread sendfd shared_buffer accept rpath cpath wpath", nullptr) < 0) {
|
||||
if (pledge("stdio thread recvfd sendfd accept rpath cpath wpath", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio rpath wpath cpath sendfd shared_buffer accept cpath unix fattr", nullptr) < 0) {
|
||||
if (pledge("stdio rpath wpath cpath recvfd sendfd accept cpath unix fattr", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
@ -65,7 +65,7 @@ int main(int argc, char** argv)
|
|||
|
||||
config->sync();
|
||||
|
||||
if (pledge("stdio rpath sendfd shared_buffer wpath cpath accept", nullptr) < 0) {
|
||||
if (pledge("stdio rpath recvfd sendfd wpath cpath accept", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -34,14 +34,14 @@
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio sendfd rpath wpath cpath sendfd shared_buffer accept unix fattr", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd rpath wpath cpath accept unix fattr", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
if (pledge("stdio sendfd rpath shared_buffer", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd rpath", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -47,7 +47,7 @@ int main(int argc, char** argv)
|
|||
|
||||
RefPtr<Core::ConfigFile> config = Core::ConfigFile::get_for_app("Chess");
|
||||
|
||||
if (pledge("stdio rpath accept wpath cpath sendfd shared_buffer proc exec", nullptr) < 0) {
|
||||
if (pledge("stdio rpath accept wpath cpath recvfd sendfd proc exec", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -34,14 +34,14 @@
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio rpath wpath cpath sendfd shared_buffer accept cpath unix fattr", nullptr) < 0) {
|
||||
if (pledge("stdio rpath wpath cpath recvfd sendfd accept cpath unix fattr", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
if (pledge("stdio rpath sendfd shared_buffer accept", nullptr) < 0) {
|
||||
if (pledge("stdio rpath recvfd sendfd accept", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -40,14 +40,14 @@
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio rpath accept wpath cpath sendfd shared_buffer unix fattr", nullptr) < 0) {
|
||||
if (pledge("stdio rpath accept wpath cpath recvfd sendfd unix fattr", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
if (pledge("stdio rpath accept wpath cpath sendfd shared_buffer", nullptr) < 0) {
|
||||
if (pledge("stdio rpath accept wpath cpath recvfd sendfd", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -35,14 +35,14 @@
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio rpath wpath cpath sendfd shared_buffer accept cpath unix fattr", nullptr) < 0) {
|
||||
if (pledge("stdio rpath wpath cpath recvfd sendfd accept cpath unix fattr", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
if (pledge("stdio rpath wpath cpath sendfd shared_buffer accept", nullptr) < 0) {
|
||||
if (pledge("stdio rpath wpath cpath recvfd sendfd accept", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -38,14 +38,14 @@
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio rpath wpath cpath sendfd shared_buffer accept cpath unix fattr", nullptr) < 0) {
|
||||
if (pledge("stdio rpath wpath cpath recvfd sendfd accept cpath unix fattr", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
if (pledge("stdio rpath wpath cpath sendfd shared_buffer accept", nullptr) < 0) {
|
||||
if (pledge("stdio rpath wpath cpath recvfd sendfd accept", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -39,7 +39,7 @@ int main(int argc, char** argv)
|
|||
auto app = GUI::Application::construct(argc, argv);
|
||||
auto app_icon = GUI::Icon::default_icon("app-solitaire");
|
||||
|
||||
if (pledge("stdio sendfd rpath shared_buffer", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd rpath", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -211,14 +211,14 @@ private:
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio sendfd shared_buffer accept rpath unix cpath fattr", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd accept rpath unix cpath fattr", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
if (pledge("stdio sendfd shared_buffer accept rpath unix", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd accept rpath unix", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
@ -239,7 +239,7 @@ int main(int argc, char** argv)
|
|||
|
||||
unveil(nullptr, nullptr);
|
||||
|
||||
if (pledge("stdio sendfd shared_buffer accept rpath", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd accept rpath", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -35,14 +35,14 @@
|
|||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
if (pledge("stdio sendfd shared_buffer accept rpath unix cpath fattr", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd accept rpath unix cpath fattr", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
if (pledge("stdio sendfd shared_buffer accept rpath", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd accept rpath", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -281,14 +281,14 @@ private:
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio sendfd shared_buffer accept rpath unix cpath fattr exec proc", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd accept rpath unix cpath fattr exec proc", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
if (pledge("stdio sendfd shared_buffer accept rpath exec proc", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd accept rpath exec proc", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -169,14 +169,14 @@ private:
|
|||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
if (pledge("stdio sendfd shared_buffer accept rpath unix cpath fattr unix proc exec", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd accept rpath unix cpath fattr unix proc exec", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
if (pledge("stdio sendfd shared_buffer accept rpath unix proc exec", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd accept rpath unix proc exec", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -203,14 +203,14 @@ private:
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio sendfd shared_buffer accept proc exec rpath unix cpath fattr", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd accept proc exec rpath unix cpath fattr", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
if (pledge("stdio sendfd shared_buffer accept proc exec rpath", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd accept proc exec rpath", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -65,14 +65,14 @@ private:
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio sendfd shared_buffer rpath cpath unix fattr", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd rpath cpath unix fattr", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
if (pledge("stdio sendfd shared_buffer rpath", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd rpath", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -30,12 +30,12 @@
|
|||
|
||||
int main()
|
||||
{
|
||||
if (pledge("stdio sendfd shared_buffer accept unix rpath cpath fattr", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd accept unix rpath cpath fattr", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
Core::EventLoop loop;
|
||||
if (pledge("stdio sendfd shared_buffer unix", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd unix", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -32,12 +32,12 @@
|
|||
|
||||
int main(int, char**)
|
||||
{
|
||||
if (pledge("stdio sendfd shared_buffer accept unix rpath cpath fattr", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd accept unix rpath cpath fattr", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
Core::EventLoop event_loop;
|
||||
if (pledge("stdio sendfd shared_buffer unix accept", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd unix accept", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
@ -50,7 +50,7 @@ int main(int, char**)
|
|||
bool ok = server->take_over_from_system_server();
|
||||
ASSERT(ok);
|
||||
|
||||
if (pledge("stdio sendfd shared_buffer accept", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd accept", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
int main(int, char**)
|
||||
{
|
||||
Core::EventLoop event_loop;
|
||||
if (pledge("stdio sendfd shared_buffer unix", nullptr) < 0) {
|
||||
if (pledge("stdio shared_buffer recvfd sendfd unix", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
@ -43,7 +43,7 @@ int main(int, char**)
|
|||
|
||||
auto socket = Core::LocalSocket::take_over_accepted_socket_from_system_server();
|
||||
IPC::new_client_connection<ImageDecoder::ClientConnection>(socket.release_nonnull(), 1);
|
||||
if (pledge("stdio sendfd shared_buffer", nullptr) < 0) {
|
||||
if (pledge("stdio shared_buffer recvfd sendfd", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio recvfd sendfd shared_buffer accept rpath wpath cpath unix fattr", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd accept rpath wpath cpath unix fattr", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
@ -63,7 +63,7 @@ int main(int argc, char** argv)
|
|||
|
||||
unveil(nullptr, nullptr);
|
||||
|
||||
if (pledge("stdio recvfd sendfd shared_buffer accept rpath", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd accept rpath", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -75,7 +75,7 @@ int main(int argc, char** argv)
|
|||
|
||||
GUI::WindowServerConnection::the().send_sync<Messages::WindowServer::SetSystemMenu>(menu->menu_id());
|
||||
|
||||
if (pledge("stdio sendfd shared_buffer accept rpath proc exec", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd accept rpath proc exec", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio recvfd sendfd shared_buffer accept proc exec rpath unix cpath fattr sigaction", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd accept proc exec rpath unix cpath fattr sigaction", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
@ -45,7 +45,7 @@ int main(int argc, char** argv)
|
|||
;
|
||||
});
|
||||
|
||||
if (pledge("stdio recvfd sendfd shared_buffer accept proc exec rpath", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd accept proc exec rpath", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
int main(int, char**)
|
||||
{
|
||||
Core::EventLoop event_loop;
|
||||
if (pledge("stdio recvfd sendfd shared_buffer accept unix rpath recvfd", nullptr) < 0) {
|
||||
if (pledge("stdio shared_buffer recvfd sendfd accept unix rpath", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue