ladybird/Userland/Services
Liav A 43903aa960 SystemServer: Ensure service drop privileges could fail only when root
If we try to launch a lazily-spawned service and the SystemServer as a
(running --user) session leader is running with root permissions, then
if it is instructed to drop the root permissions for a the new service
then it will make sense to abort the entire spawn procedure if dropping
of privileges failed.

For other users, trying to change UID/GID to something else doesn't make
sense (and will always actually fail) as we are already running in non
root permissions, hence we don't attempt to do this anymore.
It should be noted that if an explicit User configuration was actually
specified for a Service to be used with, we would still try to login
with the requested User option value, which would fail when running as
non-root user.

This is useful for example when trying to run the pro utility with pls
to elevate to root permissions, but the session leader is still the same
so trying to "drop" privileges to UID 0 doesn't make sense.
2023-06-03 14:42:22 +02:00
..
AudioServer AudioServer: Migrate from DeprecatedFile to File 2023-05-12 19:46:54 +01:00
ChessEngine Chess+ChessEngine: Fix stockfish by setting correct blocking flag 2023-05-27 18:44:21 +02:00
Clipboard Clipboard: Avoid unnecessary IPC::Dictionary wrapper 2023-05-21 07:53:45 +02:00
ConfigServer LibCore: Move Stream-based sockets into the Core namespace 2023-02-13 00:50:07 +00:00
CrashDaemon AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
DHCPClient DHCPClient: Remove usage of DeprecatedFile 2023-04-27 07:29:49 +02:00
EchoServer Everywhere: Remove unintentional partial stream reads and writes 2023-03-13 15:16:20 +00:00
FileOperation Everywhere: Remove unintentional partial stream reads and writes 2023-03-13 15:16:20 +00:00
FileSystemAccessServer FileSystemAccessServer: Don't transmit unused data 2023-05-29 13:17:22 +02:00
ImageDecoder LibGfx: Move all image loaders and writers to a subdirectory 2023-03-21 22:39:25 +01:00
KeyboardPreferenceLoader KeyboardPreferenceLoader: Remove usage of DeprecatedFile 2023-04-27 07:29:49 +02:00
LaunchServer LaunchServer: Prefer FileSystem over DeprecatedFile 2023-05-15 06:50:43 +02:00
LoginServer LibGUI: Make Application's construction fallible 2023-05-05 16:41:21 +01:00
LookupServer AK: Rename Time to Duration 2023-05-24 23:18:07 +02:00
NetworkServer LibCore: Move Stream-based file into the Core namespace 2023-02-13 00:50:07 +00:00
NotificationServer NotificationServer: Stop notifications showing in the top left at first 2023-05-31 14:45:54 +02:00
RequestServer RequestServer: Avoid unnecessary IPC::Dictionary wrapper 2023-05-21 07:53:45 +02:00
SpiceAgent SpiceAgent: Exit early if SPICE_DEVICE doesn't exist 2023-06-03 05:52:16 +02:00
SQLServer Everywhere: Remove unused DeprecatedString includes 2023-04-09 22:00:54 +02:00
SystemServer SystemServer: Ensure service drop privileges could fail only when root 2023-06-03 14:42:22 +02:00
Taskbar LibGfx+Everywhere: Change Gfx::Rect to be endpoint exclusive 2023-05-23 12:35:42 +02:00
TelnetServer Userland: Merge DEFAULT_PATH into LibFileSystem/FileSystem.h 2023-05-13 07:53:13 +02:00
WebContent LibWeb: Make pseudo-elements inspectable 2023-06-03 05:54:49 +02:00
WebDriver AK: Add new failable JsonArray::{append/set} functions 2023-04-24 09:21:51 +02:00
WebServer WebServer: Convert document_root_path from DeprecatedString to String 2023-05-21 07:52:41 +02:00
WebSocket WebSocket: Avoid unnecessary IPC::Dictionary wrapper 2023-05-21 07:53:45 +02:00
WindowServer WindowServer: Don't crash when trying to set invalid effects 2023-06-01 21:17:29 +02:00
CMakeLists.txt Userland: Remove "Inspector" program and related utilities 2023-04-25 14:48:40 +02:00