diff --git a/Base/etc/SystemServer.ini b/Base/etc/SystemServer.ini index 89c86d50e0..7a7909b580 100644 --- a/Base/etc/SystemServer.ini +++ b/Base/etc/SystemServer.ini @@ -1,13 +1,3 @@ -[RequestServer] -Socket=/tmp/portal/request -SocketPermissions=600 -Lazy=true -Priority=low -User=anon -SystemModes=text,graphical -MultiInstance=true -AcceptSocketConnections=true - [FileSystemAccessServer] Socket=/tmp/portal/filesystemaccess SocketPermissions=660 diff --git a/Base/home/anon/.config/SystemServer.ini b/Base/home/anon/.config/SystemServer.ini index 75a20f682b..e18d5c0bb2 100644 --- a/Base/home/anon/.config/SystemServer.ini +++ b/Base/home/anon/.config/SystemServer.ini @@ -2,6 +2,15 @@ Socket=/tmp/user/%uid/portal/config SocketPermissions=600 +[RequestServer] +Socket=/tmp/user/%uid/portal/request +SocketPermissions=600 +Lazy=true +Priority=low +SystemModes=text,graphical +MultiInstance=true +AcceptSocketConnections=true + [LaunchServer] Socket=/tmp/user/%uid/portal/launch SocketPermissions=600 diff --git a/Userland/Applications/Browser/main.cpp b/Userland/Applications/Browser/main.cpp index 10990f6c4e..530a43512b 100644 --- a/Userland/Applications/Browser/main.cpp +++ b/Userland/Applications/Browser/main.cpp @@ -87,7 +87,7 @@ ErrorOr serenity_main(Main::Arguments arguments) TRY(Core::System::unveil("/tmp/portal/filesystemaccess", "rw")); TRY(Core::System::unveil("/tmp/portal/image", "rw")); TRY(Core::System::unveil("/tmp/portal/webcontent", "rw")); - TRY(Core::System::unveil("/tmp/portal/request", "rw")); + TRY(Core::System::unveil("/tmp/user/%uid/portal/request", "rw")); TRY(Core::System::unveil("/bin/BrowserSettings", "x")); TRY(Core::System::unveil(nullptr, nullptr)); diff --git a/Userland/Libraries/LibProtocol/RequestClient.h b/Userland/Libraries/LibProtocol/RequestClient.h index 5787228ae6..3cc54cca10 100644 --- a/Userland/Libraries/LibProtocol/RequestClient.h +++ b/Userland/Libraries/LibProtocol/RequestClient.h @@ -20,7 +20,7 @@ class Request; class RequestClient final : public IPC::ConnectionToServer , public RequestClientEndpoint { - IPC_CLIENT_CONNECTION(RequestClient, "/tmp/portal/request"sv) + IPC_CLIENT_CONNECTION(RequestClient, "/tmp/user/%uid/portal/request"sv) public: template> diff --git a/Userland/Services/WebContent/main.cpp b/Userland/Services/WebContent/main.cpp index 290a34b9a2..300002d33b 100644 --- a/Userland/Services/WebContent/main.cpp +++ b/Userland/Services/WebContent/main.cpp @@ -23,7 +23,7 @@ ErrorOr serenity_main(Main::Arguments) TRY(Core::System::pledge("stdio recvfd sendfd accept unix rpath")); TRY(Core::System::unveil("/res", "r")); TRY(Core::System::unveil("/etc/timezone", "r")); - TRY(Core::System::unveil("/tmp/portal/request", "rw")); + TRY(Core::System::unveil("/tmp/user/%uid/portal/request", "rw")); TRY(Core::System::unveil("/tmp/portal/image", "rw")); TRY(Core::System::unveil("/tmp/portal/websocket", "rw")); TRY(Core::System::unveil(nullptr, nullptr));