Files
ladybird/Base/etc/SystemServer.ini
Andreas Kling a7e44d8b3c Base: Remove unnecessary UID separation of multi-process Browser
After looking closely at this, I realized that we've been running
all the service processes under separate user accounts even though
there's actually no need to.

Since we already use pledge() and unveil() to limit the scope and
access of these programs, separating them to another UID doesn't
achieve anything meaningful. So let's bring them back to the "anon"
user account and simplify things.

Programs affected:

- ImageDecoder
- RequestServer
- WebContent
- WebSocket

Longer term, I'd like for all of these to get spawned for the current
desktop user somehow, possibly by some kind of session manager, or
perhaps by the Browser program itself. But for now they remain under
SystemServer's control.
2021-05-06 13:33:08 +02:00

171 lines
2.7 KiB
INI

[RequestServer]
Socket=/tmp/portal/request
SocketPermissions=660
Lazy=1
Priority=low
User=anon
BootModes=text,graphical,self-test
MultiInstance=1
AcceptSocketConnections=1
[WebContent]
Socket=/tmp/portal/webcontent
SocketPermissions=660
Lazy=1
User=anon
BootModes=graphical
MultiInstance=1
AcceptSocketConnections=1
[ImageDecoder]
Socket=/tmp/portal/image
SocketPermissions=660
Lazy=1
User=anon
BootModes=graphical
MultiInstance=1
AcceptSocketConnections=1
[SymbolServer]
Socket=/tmp/portal/symbol
SocketPermissions=660
User=symbol
Lazy=1
[WebSocket]
Socket=/tmp/portal/websocket
SocketPermissions=660
Lazy=1
Priority=low
User=anon
BootModes=text,graphical,self-test
MultiInstance=1
AcceptSocketConnections=1
[LookupServer]
Socket=/tmp/portal/lookup
SocketPermissions=660
Priority=low
KeepAlive=1
User=lookup
BootModes=text,graphical,self-test
[DHCPClient]
Priority=low
KeepAlive=1
User=root
BootModes=text,graphical,self-test
[NotificationServer]
Socket=/tmp/portal/notify
SocketPermissions=660
Lazy=1
Priority=low
KeepAlive=1
User=notify
[LaunchServer]
Socket=/tmp/portal/launch
SocketPermissions=600
Lazy=1
User=anon
BootModes=text,graphical
[WindowServer]
Socket=/tmp/portal/window,/tmp/portal/wm
SocketPermissions=660
Priority=high
KeepAlive=1
User=window
[Clipboard]
Socket=/tmp/portal/clipboard
SocketPermissions=660
Priority=low
User=clipboard
[ResourceGraph.Applet]
Arguments=--cpu=CPUGraph,#00bb00 --memory=MemoryGraph,#00bbbb
Priority=low
KeepAlive=1
User=anon
[Audio.Applet]
Priority=low
KeepAlive=1
User=anon
[Network.Applet]
Arguments=--name=Network
Priority=low
KeepAlive=1
User=anon
[ClipboardHistory.Applet]
Priority=low
KeepAlive=1
User=anon
[AudioServer]
# TODO: It would be nice to make this lazy, but Audio.Applet connects to it immediately on startup anyway.
Socket=/tmp/portal/audio
Priority=high
KeepAlive=1
User=anon
[Taskbar]
KeepAlive=1
User=anon
[Desktop]
Executable=/bin/FileManager
Arguments=--desktop
KeepAlive=1
User=anon
[Terminal]
User=anon
WorkingDirectory=/home/anon
[Shell@tty0]
Executable=/bin/Shell
StdIO=/dev/tty0
Environment=TERM=xterm
KeepAlive=1
BootModes=text
[Shell@tty1]
Executable=/bin/Shell
StdIO=/dev/tty1
Environment=TERM=xterm
KeepAlive=1
BootModes=text
[CppLanguageServer]
Socket=/tmp/portal/language/cpp
SocketPermissions=660
Lazy=1
User=anon
MultiInstance=1
AcceptSocketConnections=1
[ShellLanguageServer]
Socket=/tmp/portal/language/shell
SocketPermissions=660
Lazy=1
User=anon
MultiInstance=1
AcceptSocketConnections=1
[CrashDaemon]
KeepAlive=1
User=anon
[TestRunner@ttyS0]
Executable=/home/anon/tests/run-tests-and-shutdown.sh
StdIO=/dev/ttyS0
Environment=DO_SHUTDOWN_AFTER_TESTS=1 TERM=xterm PATH=/bin:/usr/bin:/usr/local/bin TESTS_ONLY=1
User=anon
WorkingDirectory=/home/anon
BootModes=self-test