mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
NetworkSettings+SpiceAgent: Update and add required unveil paths
This commit is contained in:
parent
1fde3737f4
commit
323c403d43
Notes:
sideshowbarker
2024-07-17 07:19:27 +09:00
Author: https://github.com/ne0ndrag0n Commit: https://github.com/SerenityOS/serenity/commit/323c403d43 Pull-request: https://github.com/SerenityOS/serenity/pull/15600 Reviewed-by: https://github.com/bgianfo ✅
3 changed files with 4 additions and 3 deletions
|
@ -21,9 +21,10 @@ ErrorOr<int> serenity_main(Main::Arguments args)
|
||||||
|
|
||||||
TRY(Core::System::unveil("/bin/NetworkServer", "x"));
|
TRY(Core::System::unveil("/bin/NetworkServer", "x"));
|
||||||
TRY(Core::System::unveil("/etc/Network.ini", "rwc"));
|
TRY(Core::System::unveil("/etc/Network.ini", "rwc"));
|
||||||
|
TRY(Core::System::unveil("/proc/all", "r"));
|
||||||
TRY(Core::System::unveil("/proc/net/adapters", "r"));
|
TRY(Core::System::unveil("/proc/net/adapters", "r"));
|
||||||
TRY(Core::System::unveil("/res", "r"));
|
TRY(Core::System::unveil("/res", "r"));
|
||||||
TRY(Core::System::unveil("/tmp/portal/clipboard", "rw"));
|
TRY(Core::System::unveil("/tmp/session/%sid/portal/clipboard", "rw"));
|
||||||
TRY(Core::System::unveil("/tmp/portal/window", "rw"));
|
TRY(Core::System::unveil("/tmp/portal/window", "rw"));
|
||||||
TRY(Core::System::unveil(nullptr, nullptr));
|
TRY(Core::System::unveil(nullptr, nullptr));
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
class ConnectionToClipboardServer final
|
class ConnectionToClipboardServer final
|
||||||
: public IPC::ConnectionToServer<ClipboardClientEndpoint, ClipboardServerEndpoint>
|
: public IPC::ConnectionToServer<ClipboardClientEndpoint, ClipboardServerEndpoint>
|
||||||
, public ClipboardClientEndpoint {
|
, public ClipboardClientEndpoint {
|
||||||
IPC_CLIENT_CONNECTION(ConnectionToClipboardServer, "/tmp/portal/clipboard"sv)
|
IPC_CLIENT_CONNECTION(ConnectionToClipboardServer, "/tmp/session/%sid/portal/clipboard"sv)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Function<void()> on_data_changed;
|
Function<void()> on_data_changed;
|
||||||
|
|
|
@ -18,7 +18,7 @@ ErrorOr<int> serenity_main(Main::Arguments)
|
||||||
|
|
||||||
TRY(Core::System::pledge("unix rpath wpath stdio sendfd recvfd"));
|
TRY(Core::System::pledge("unix rpath wpath stdio sendfd recvfd"));
|
||||||
TRY(Core::System::unveil(SPICE_DEVICE, "rw"sv));
|
TRY(Core::System::unveil(SPICE_DEVICE, "rw"sv));
|
||||||
TRY(Core::System::unveil("/tmp/portal/clipboard", "rw"));
|
TRY(Core::System::unveil("/tmp/session/%sid/portal/clipboard", "rw"));
|
||||||
TRY(Core::System::unveil(nullptr, nullptr));
|
TRY(Core::System::unveil(nullptr, nullptr));
|
||||||
|
|
||||||
int serial_port_fd = TRY(Core::System::open(SPICE_DEVICE, O_RDWR));
|
int serial_port_fd = TRY(Core::System::open(SPICE_DEVICE, O_RDWR));
|
||||||
|
|
Loading…
Reference in a new issue