mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:17:44 +00:00
Applications: Use pledge and unveil
This commit is contained in:
parent
9efcb5d290
commit
ed5469c1c2
5 changed files with 84 additions and 7 deletions
|
@ -45,8 +45,18 @@
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio thread rpath accept cpath wpath shared_buffer unix fattr", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
if (pledge("stdio thread rpath accept cpath wpath shared_buffer unix", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
auto audio_client = Audio::ClientConnection::construct();
|
||||
audio_client->handshake();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue