diff options
author | DexesTTP <dexes.ttp@gmail.com> | 2021-04-24 01:46:49 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-04-25 19:04:34 +0200 |
commit | 62ed26164bd160387c80522dfee5db2891b4c0dc (patch) | |
tree | 0ac84f7e03d12e6aaf320698cb18c452d50b938f /Base | |
parent | c11ca9df33c602a8c5d8efb89cb42a9986629c1d (diff) | |
download | serenity-62ed26164bd160387c80522dfee5db2891b4c0dc.zip |
Services: Add a WebSocket service
The WebSocket service isolates communication with a WebSocket to its
own isolated process. Similar to other isolating services, it has its
own user and group.
Diffstat (limited to 'Base')
-rw-r--r-- | Base/etc/SystemServer.ini | 10 | ||||
-rw-r--r-- | Base/etc/group | 3 | ||||
-rw-r--r-- | Base/etc/passwd | 1 |
3 files changed, 13 insertions, 1 deletions
diff --git a/Base/etc/SystemServer.ini b/Base/etc/SystemServer.ini index c6b6c676ed..70602d3648 100644 --- a/Base/etc/SystemServer.ini +++ b/Base/etc/SystemServer.ini @@ -32,6 +32,16 @@ SocketPermissions=660 User=symbol Lazy=1 +[WebSocket] +Socket=/tmp/portal/websocket +SocketPermissions=660 +Lazy=1 +Priority=low +User=websocket +BootModes=text,graphical,self-test +MultiInstance=1 +AcceptSocketConnections=1 + [LookupServer] Socket=/tmp/portal/lookup SocketPermissions=660 diff --git a/Base/etc/group b/Base/etc/group index e1de8b0a5a..d3f1194dc7 100644 --- a/Base/etc/group +++ b/Base/etc/group @@ -4,7 +4,7 @@ tty:x:2: phys:x:3:window,anon audio:x:4:anon utmp:x:5: -lookup:x:10:protocol,anon +lookup:x:10:protocol,websocket,anon protocol:x:11:webcontent,anon notify:x:12:anon window:x:13:anon,notify @@ -12,4 +12,5 @@ clipboard:x:14:anon,notify webcontent:x:15:anon image:x:16:anon,webcontent symbol:x:17:anon +websocket:x:18:webcontent,anon users:x:100:anon diff --git a/Base/etc/passwd b/Base/etc/passwd index d23966427f..101bf0263c 100644 --- a/Base/etc/passwd +++ b/Base/etc/passwd @@ -7,5 +7,6 @@ clipboard:!:14:14:Clipboard,,,:/:/bin/false webcontent:!:15:15:WebContent,,,:/:/bin/false image:!:16:16:ImageDecoder,,,:/:/bin/false symbol:!:17:17:SymbolServer,,,:/:/bin/false +websocket:!:18:18:WebSocket,,,:/:/bin/false anon:!:100:100:Anonymous,,,:/home/anon:/bin/sh nona:!:200:200:Nona,,,:/home/nona:/bin/sh |