mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 02:13:56 +09:00
Services: Use default execpromises parameter to pledge(..)
This commit is contained in:
parent
9cfd520bb8
commit
09fe9b546f
Notes:
sideshowbarker
2024-07-17 14:28:43 +09:00
Author: https://github.com/bgianfo
Commit: 09fe9b546f
Pull-request: https://github.com/SerenityOS/serenity/pull/13496
Reviewed-by: https://github.com/awesomekling ✅
2 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
ErrorOr<int> serenity_main(Main::Arguments arguments)
|
ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||||
{
|
{
|
||||||
TRY(Core::System::pledge("stdio unix inet id accept", nullptr));
|
TRY(Core::System::pledge("stdio unix inet id accept"));
|
||||||
TRY(Core::System::unveil(nullptr, nullptr));
|
TRY(Core::System::unveil(nullptr, nullptr));
|
||||||
|
|
||||||
int port = 7;
|
int port = 7;
|
||||||
|
|
|
@ -16,7 +16,7 @@ ErrorOr<int> serenity_main(Main::Arguments)
|
||||||
{
|
{
|
||||||
Core::EventLoop loop;
|
Core::EventLoop loop;
|
||||||
|
|
||||||
TRY(Core::System::pledge("unix rpath wpath stdio sendfd recvfd", nullptr));
|
TRY(Core::System::pledge("unix rpath wpath stdio sendfd recvfd"));
|
||||||
TRY(Core::System::unveil(SPICE_DEVICE, "rw"));
|
TRY(Core::System::unveil(SPICE_DEVICE, "rw"));
|
||||||
TRY(Core::System::unveil("/tmp/portal/clipboard", "rw"));
|
TRY(Core::System::unveil("/tmp/portal/clipboard", "rw"));
|
||||||
TRY(Core::System::unveil(nullptr, nullptr));
|
TRY(Core::System::unveil(nullptr, nullptr));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue