mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:47:45 +00:00
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.
This commit is contained in:
parent
0415db30c6
commit
9794e18a20
4 changed files with 11 additions and 2 deletions
|
@ -22,9 +22,10 @@ User=lookup
|
||||||
|
|
||||||
[WindowServer]
|
[WindowServer]
|
||||||
Socket=/tmp/portal/window
|
Socket=/tmp/portal/window
|
||||||
|
SocketPermissions=660
|
||||||
Priority=high
|
Priority=high
|
||||||
KeepAlive=1
|
KeepAlive=1
|
||||||
User=anon
|
User=window
|
||||||
|
|
||||||
[Clock.MenuApplet]
|
[Clock.MenuApplet]
|
||||||
KeepAlive=1
|
KeepAlive=1
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
root:x:0:
|
root:x:0:
|
||||||
wheel:x:1:anon
|
wheel:x:1:anon
|
||||||
tty:x:2:
|
tty:x:2:
|
||||||
phys:x:3:anon
|
phys:x:3:window
|
||||||
audio:x:4:anon
|
audio:x:4:anon
|
||||||
lookup:x:10:protocol,anon
|
lookup:x:10:protocol,anon
|
||||||
protocol:x:11:anon
|
protocol:x:11:anon
|
||||||
|
window:x:13:anon
|
||||||
users:x:100:anon
|
users:x:100:anon
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
root:x:0:0:root:/:/bin/sh
|
root:x:0:0:root:/:/bin/sh
|
||||||
lookup:x:10:10:LookupServer,,,:/:/bin/false
|
lookup:x:10:10:LookupServer,,,:/:/bin/false
|
||||||
protocol:x:11:11:ProtocolServer,,,:/:/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
|
anon:x:100:100:Anonymous,,,:/home/anon:/bin/sh
|
||||||
nona:x:200:200:Nona,,,:/home/nona:/bin/sh
|
nona:x:200:200:Nona,,,:/home/nona:/bin/sh
|
||||||
|
|
|
@ -6,6 +6,8 @@ wheel_gid=1
|
||||||
tty_gid=2
|
tty_gid=2
|
||||||
phys_gid=3
|
phys_gid=3
|
||||||
audio_gid=4
|
audio_gid=4
|
||||||
|
window_uid=13
|
||||||
|
window_gid=13
|
||||||
|
|
||||||
die() {
|
die() {
|
||||||
echo "die: $*"
|
echo "die: $*"
|
||||||
|
@ -83,6 +85,10 @@ cp -R ../Base/* mnt/
|
||||||
cp -R ../Root/* mnt/
|
cp -R ../Root/* mnt/
|
||||||
cp kernel.map mnt/res/
|
cp kernel.map mnt/res/
|
||||||
chmod 400 mnt/res/kernel.map
|
chmod 400 mnt/res/kernel.map
|
||||||
|
|
||||||
|
chmod 660 mnt/etc/WindowServer/WindowServer.ini
|
||||||
|
chown $window_uid:$window_gid mnt/etc/WindowServer/WindowServer.ini
|
||||||
|
|
||||||
echo "done"
|
echo "done"
|
||||||
|
|
||||||
printf "installing users... "
|
printf "installing users... "
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue