mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 02:13:56 +09:00
LibCore: Never connect to InspectorServer if getuid() == 0
Let's just stay on the safe side with this.
This commit is contained in:
parent
5c05dfecb5
commit
3429b44161
Notes:
sideshowbarker
2024-07-18 18:09:09 +09:00
Author: https://github.com/awesomekling
Commit: 3429b44161
1 changed files with 5 additions and 5 deletions
|
@ -277,11 +277,11 @@ EventLoop::EventLoop([[maybe_unused]] MakeInspectable make_inspectable)
|
|||
s_event_loop_stack->append(this);
|
||||
|
||||
#ifdef __serenity__
|
||||
if (make_inspectable == MakeInspectable::Yes) {
|
||||
if (!s_inspector_server_connection) {
|
||||
if (!connect_to_inspector_server())
|
||||
dbgln("Core::EventLoop: Failed to connect to InspectorServer");
|
||||
}
|
||||
if (getuid() != 0
|
||||
&& make_inspectable == MakeInspectable::Yes
|
||||
&& !s_inspector_server_connection) {
|
||||
if (!connect_to_inspector_server())
|
||||
dbgln("Core::EventLoop: Failed to connect to InspectorServer");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue