wind: Remove unneeded pledges

wind doesn't spawn child processes anymore, startui does.
This commit is contained in:
apio 2024-12-11 19:45:04 +01:00
parent 3b8aabce0f
commit f38c9e68c1
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -58,7 +58,7 @@ Result<int> luna_main(int argc, char** argv)
{ {
srand((unsigned)time(NULL)); srand((unsigned)time(NULL));
TRY(os::Security::pledge("stdio rpath wpath cpath unix proc exec tty id", NULL)); TRY(os::Security::pledge("stdio rpath wpath cpath unix tty id", NULL));
StringView socket_path = "/tmp/wind.sock"; StringView socket_path = "/tmp/wind.sock";
StringView system_socket_path = "/tmp/wsys.sock"; StringView system_socket_path = "/tmp/wsys.sock";
@ -128,7 +128,7 @@ Result<int> luna_main(int argc, char** argv)
TRY(fds.try_append({ .fd = server->fd(), .events = POLLIN, .revents = 0 })); TRY(fds.try_append({ .fd = server->fd(), .events = POLLIN, .revents = 0 }));
TRY(fds.try_append({ .fd = system_server->fd(), .events = POLLIN, .revents = 0 })); TRY(fds.try_append({ .fd = system_server->fd(), .events = POLLIN, .revents = 0 }));
TRY(os::Security::pledge("stdio rpath wpath cpath unix proc exec", NULL)); TRY(os::Security::pledge("stdio rpath wpath cpath unix", NULL));
while (1) while (1)
{ {