summaryrefslogtreecommitdiff
path: root/Base/etc
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-02-16 19:26:31 +0100
committerAndreas Kling <kling@serenityos.org>2020-02-16 21:58:17 +0100
commit9794e18a20e026f0a377c8bc90fe5eb9909dae8b (patch)
treec1ebbee7a1af6a4be2fea72ccaac359898a078ab /Base/etc
parent0415db30c6aaec0618b5f93a1692c6f5c38e3e5f (diff)
downloadserenity-9794e18a20e026f0a377c8bc90fe5eb9909dae8b.zip
Base: Run WindowServer as a separate "window" user
This was actually rather painless and straightforward. WindowServer now runs as the "window" user. Users in the "window" group can connect to it via the socket in /tmp/portal/window as usual.
Diffstat (limited to 'Base/etc')
-rw-r--r--Base/etc/SystemServer.ini3
-rw-r--r--Base/etc/group3
-rw-r--r--Base/etc/passwd1
3 files changed, 5 insertions, 2 deletions
diff --git a/Base/etc/SystemServer.ini b/Base/etc/SystemServer.ini
index 1dcfe862a8..f5fd678a3a 100644
--- a/Base/etc/SystemServer.ini
+++ b/Base/etc/SystemServer.ini
@@ -22,9 +22,10 @@ User=lookup
[WindowServer]
Socket=/tmp/portal/window
+SocketPermissions=660
Priority=high
KeepAlive=1
-User=anon
+User=window
[Clock.MenuApplet]
KeepAlive=1
diff --git a/Base/etc/group b/Base/etc/group
index e41861da50..847883e3da 100644
--- a/Base/etc/group
+++ b/Base/etc/group
@@ -1,8 +1,9 @@
root:x:0:
wheel:x:1:anon
tty:x:2:
-phys:x:3:anon
+phys:x:3:window
audio:x:4:anon
lookup:x:10:protocol,anon
protocol:x:11:anon
+window:x:13:anon
users:x:100:anon
diff --git a/Base/etc/passwd b/Base/etc/passwd
index e23a6d09d3..78f60742f2 100644
--- a/Base/etc/passwd
+++ b/Base/etc/passwd
@@ -1,5 +1,6 @@
root:x:0:0:root:/:/bin/sh
lookup:x:10:10:LookupServer,,,:/:/bin/false
protocol:x:11:11:ProtocolServer,,,:/:/bin/false
+window:x:13:13:WindowServer,,,:/:/bin/false
anon:x:100:100:Anonymous,,,:/home/anon:/bin/sh
nona:x:200:200:Nona,,,:/home/nona:/bin/sh