summaryrefslogtreecommitdiff
path: root/Base/etc
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-02-04 19:58:21 +0100
committerAndreas Kling <kling@serenityos.org>2021-02-04 23:19:08 +0100
commitaefd206038f786e832187762f7cb0f6c776691f2 (patch)
treef700a5cd8ea5d055a9b1c8dbf9518cc2bbc9eb26 /Base/etc
parent54d28df97d85557042a5c215ad739a0341402926 (diff)
downloadserenity-aefd206038f786e832187762f7cb0f6c776691f2.zip
SymbolServer: Add symbolication service for out-of-process ELF parsing
This patch adds SymbolServer, a service daemon that provides symbolication of ELF binaries. It has a very simple IPC API at the moment that only turns addresses into symbol names. This can be used to implement symbolication without having to do in-process ELF parsing yourself. :^)
Diffstat (limited to 'Base/etc')
-rw-r--r--Base/etc/SystemServer.ini6
-rw-r--r--Base/etc/group1
-rw-r--r--Base/etc/passwd1
3 files changed, 8 insertions, 0 deletions
diff --git a/Base/etc/SystemServer.ini b/Base/etc/SystemServer.ini
index ce97dc6d0c..b02567fb9c 100644
--- a/Base/etc/SystemServer.ini
+++ b/Base/etc/SystemServer.ini
@@ -26,6 +26,12 @@ BootModes=graphical
MultiInstance=1
AcceptSocketConnections=1
+[SymbolServer]
+Socket=/tmp/portal/symbol
+SocketPermissions=660
+User=symbol
+Lazy=1
+
[LookupServer]
Socket=/tmp/portal/lookup
SocketPermissions=660
diff --git a/Base/etc/group b/Base/etc/group
index 55b63e71eb..e1de8b0a5a 100644
--- a/Base/etc/group
+++ b/Base/etc/group
@@ -11,4 +11,5 @@ window:x:13:anon,notify
clipboard:x:14:anon,notify
webcontent:x:15:anon
image:x:16:anon,webcontent
+symbol:x:17:anon
users:x:100:anon
diff --git a/Base/etc/passwd b/Base/etc/passwd
index b0f24bbaea..d23966427f 100644
--- a/Base/etc/passwd
+++ b/Base/etc/passwd
@@ -6,5 +6,6 @@ window:!:13:13:WindowServer,,,:/:/bin/false
clipboard:!:14:14:Clipboard,,,:/:/bin/false
webcontent:!:15:15:WebContent,,,:/:/bin/false
image:!:16:16:ImageDecoder,,,:/:/bin/false
+symbol:!:17:17:SymbolServer,,,:/:/bin/false
anon:!:100:100:Anonymous,,,:/home/anon:/bin/sh
nona:!:200:200:Nona,,,:/home/nona:/bin/sh