summaryrefslogtreecommitdiff
path: root/Userland/Services/LoginServer
diff options
context:
space:
mode:
authorLucas CHOLLET <lucas.chollet@free.fr>2022-07-17 15:41:01 +0200
committerLinus Groh <mail@linusgroh.de>2022-07-19 11:15:14 +0100
commit70846d701cc117176eca150c54649639ec5e8337 (patch)
treee0b2e21a4bf10a6b3cf488cfc2e294c931f4796f /Userland/Services/LoginServer
parentcc0d53d6a676b04c16ad2efe6f72db087c8246c7 (diff)
downloadserenity-70846d701cc117176eca150c54649639ec5e8337.zip
LaunchServer+SystemServer: Move the portal to a user-specific directory
Various changes are needed to support this: - The directory is created by Core::Account on login (and located in /tmp). - Service's sockets are now deleted on exit (to allow re-creation) - SystemServer needs to handle SIGTERM to correctly destroy services.
Diffstat (limited to 'Userland/Services/LoginServer')
-rw-r--r--Userland/Services/LoginServer/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Services/LoginServer/main.cpp b/Userland/Services/LoginServer/main.cpp
index 1b4bb2392a..66f922c1f0 100644
--- a/Userland/Services/LoginServer/main.cpp
+++ b/Userland/Services/LoginServer/main.cpp
@@ -56,8 +56,9 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
{
auto app = TRY(GUI::Application::try_create(arguments));
- TRY(Core::System::pledge("stdio recvfd sendfd rpath exec proc id"));
+ TRY(Core::System::pledge("stdio recvfd sendfd cpath rpath exec proc id"));
TRY(Core::System::unveil("/home", "r"));
+ TRY(Core::System::unveil("/tmp", "c"));
TRY(Core::System::unveil("/etc/passwd", "r"));
TRY(Core::System::unveil("/etc/shadow", "r"));
TRY(Core::System::unveil("/etc/group", "r"));