Base: Launch ConfigServer at session start-up
This commit is contained in:
parent
bee5bcda73
commit
07e89ad538
Notes:
sideshowbarker
2024-07-17 08:15:41 +09:00
Author: https://github.com/LucasChollet Commit: https://github.com/SerenityOS/serenity/commit/07e89ad538 Pull-request: https://github.com/SerenityOS/serenity/pull/14673 Reviewed-by: https://github.com/linusg
4 changed files with 6 additions and 7 deletions
|
@ -1,8 +1,3 @@
|
|||
[ConfigServer]
|
||||
Socket=/tmp/portal/config
|
||||
SocketPermissions=600
|
||||
User=anon
|
||||
|
||||
[RequestServer]
|
||||
Socket=/tmp/portal/request
|
||||
SocketPermissions=600
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
[ConfigServer]
|
||||
Socket=/tmp/user/%uid/portal/config
|
||||
SocketPermissions=600
|
||||
|
||||
[LaunchServer]
|
||||
Socket=/tmp/user/%uid/portal/launch
|
||||
SocketPermissions=600
|
||||
|
|
|
@ -433,7 +433,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
TRY(Core::System::unveil("/bin/utmpupdate", "x"));
|
||||
TRY(Core::System::unveil("/etc/FileIconProvider.ini", "r"));
|
||||
TRY(Core::System::unveil("/tmp/user/%uid/portal/launch", "rw"));
|
||||
TRY(Core::System::unveil("/tmp/portal/config", "rw"));
|
||||
TRY(Core::System::unveil("/tmp/user/%uid/portal/config", "rw"));
|
||||
TRY(Core::System::unveil(nullptr, nullptr));
|
||||
|
||||
auto modified_state_check_timer = Core::Timer::create_repeating(500, [&] {
|
||||
|
|
|
@ -18,7 +18,7 @@ namespace Config {
|
|||
class Client final
|
||||
: public IPC::ConnectionToServer<ConfigClientEndpoint, ConfigServerEndpoint>
|
||||
, public ConfigClientEndpoint {
|
||||
IPC_CLIENT_CONNECTION(Client, "/tmp/portal/config"sv)
|
||||
IPC_CLIENT_CONNECTION(Client, "/tmp/user/%uid/portal/config"sv)
|
||||
|
||||
public:
|
||||
void pledge_domains(Vector<String> const&);
|
||||
|
|
Loading…
Add table
Reference in a new issue