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:
parent
5d5eccc91f
commit
f467ebc933
2 changed files with 17 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue