1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 07:37:35 +00:00

SystemServer: Detect spawning user for AcceptSocketConnections services

SystemServer now invokes services with the same uid as the process that
made the request.

This allows the superuser to have a normal GUI workflow. For example,
read and write its own files in TextEditor.
This commit is contained in:
Lucas CHOLLET 2022-06-09 17:26:05 +02:00 committed by Linus Groh
parent 5d5eccc91f
commit f467ebc933
2 changed files with 17 additions and 0 deletions

View file

@ -33,6 +33,8 @@ private:
void spawn(int socket_fd = -1);
ErrorOr<void> determine_account(int fd);
/// SocketDescriptor describes the details of a single socket that was
/// requested by a service.
struct SocketDescriptor {