mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 13:27:34 +00:00
NetworkSettings: Use helper script to write config
This change allows us to not run the app with elevated privileges. It uses the Escalator to call a helper and passes the settings as JsonObject to it.
This commit is contained in:
parent
27297d2817
commit
24b1bdca27
3 changed files with 68 additions and 22 deletions
|
@ -19,8 +19,8 @@ ErrorOr<int> serenity_main(Main::Arguments args)
|
|||
{
|
||||
TRY(Core::System::pledge("stdio rpath wpath cpath recvfd sendfd unix proc exec"));
|
||||
|
||||
TRY(Core::System::unveil("/bin/NetworkServer", "x"));
|
||||
TRY(Core::System::unveil("/etc/Network.ini", "rwc"));
|
||||
TRY(Core::System::unveil("/bin/Escalator", "x"));
|
||||
TRY(Core::System::unveil("/etc/Network.ini", "r"));
|
||||
TRY(Core::System::unveil("/sys/kernel/net/adapters", "r"));
|
||||
TRY(Core::System::unveil("/res", "r"));
|
||||
TRY(Core::System::unveil("/tmp/session/%sid/portal/clipboard", "rw"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue