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

utmpupdate: Add a program for updating /var/run/utmp

To keep track of ongoing terminal sessions, we now have a sort-of
traditional /var/run/utmp file, like other Unix systems.
Unlike other Unix systems however, ours is of course JSON. :^)

The /bin/utmpupdate program is used to update the file, which is
not writable by regular user accounts. This helper program is
set-GID "utmp".
This commit is contained in:
Andreas Kling 2020-09-06 16:10:27 +02:00
parent 35b844ba4c
commit dcd47655d0
4 changed files with 94 additions and 1 deletions

View file

@ -7,6 +7,7 @@
/etc /etc bind bind,nodev,nosuid
/home /home bind bind,nodev,nosuid
/root /root bind bind,nodev,nosuid
/var /var bind bind,nodev,nosuid
none /proc proc nosuid
none /dev/pts devpts noexec,nosuid,ro

View file

@ -3,6 +3,7 @@ wheel:x:1:anon
tty:x:2:
phys:x:3:window,anon
audio:x:4:anon
utmp:x:5:
lookup:x:10:protocol,anon
protocol:x:11:webcontent,anon
notify:x:12:anon