1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 11:07:45 +00:00

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.
This commit is contained in:
DexesTTP 2021-04-24 01:46:49 +02:00 committed by Linus Groh
parent c11ca9df33
commit 62ed26164b
16 changed files with 582 additions and 1 deletions

View file

@ -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

View file

@ -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

View file

@ -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