SchOS/ports
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Nexoniarz b411836478 libinput, seatd and libseat; sockets from accept() can pass descriptors
Alpine's libinput, libseat, seatd, xf86-input-libinput and usbutils join the
image, and seatd runs from schinit. libinput lists the keyboard and pointer as
an ordinary user, Xorg now drives both through libinput, and a program linked
to libseat running as schos opens seat0 through seatd, is handed
/dev/input/event0 and reads its name through the descriptor.

Two kernel bugs stood in the way, and both would have stopped a Wayland
compositor too. The socket connect() queues for a listener was allocated with
its domain at zero, so sendmsg refused SCM_RIGHTS on the accepted end: a server
could receive descriptors and never send one. And sendmsg treated a control
buffer longer than its messages as an error, where Linux takes a following
header too short to be one as the end; seatd passes a zeroed CMSG_SPACE array
with one descriptor at the front.

Found with /proc/strace and a temporary kinfo in sendmsg's EINVAL sites.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EVRhxi9zpdW2uDUN4FVcao
2026-10-26 16:51:39 +01:00
..
alpine libinput, seatd and libseat; sockets from accept() can pass descriptors 2026-10-26 16:51:39 +01:00
fastfetch Faster ISO builds (69 s to 9 s) and a faster write.sh check 2026-10-25 19:28:03 +01:00
JetBrains_Mono Initial commit: Schunix as it stands before the SchOS rename 2026-08-09 13:47:01 +02:00
kilo licence: SchOS is GPL-2.0-or-later, no longer Apache-2.0 2026-10-22 08:48:45 +02:00
linux-headers input, fb, vt, sysfs: the kernel calls Xorg makes 2026-10-24 12:06:04 +02:00
lwip licence: SchOS is GPL-2.0-or-later, no longer Apache-2.0 2026-10-22 08:48:45 +02:00
mk licence: SchOS is GPL-2.0-or-later, no longer Apache-2.0 2026-10-22 08:48:45 +02:00
mksh licence: SchOS is GPL-2.0-or-later, no longer Apache-2.0 2026-10-22 08:48:45 +02:00
musl exec, mmap, musl: dynamic linking 2026-10-24 10:59:52 +02:00
ncurses licence: SchOS is GPL-2.0-or-later, no longer Apache-2.0 2026-10-22 08:48:45 +02:00
Roboto Initial commit: Schunix as it stands before the SchOS rename 2026-08-09 13:47:01 +02:00
toybox licence: SchOS is GPL-2.0-or-later, no longer Apache-2.0 2026-10-22 08:48:45 +02:00
uacpi acpi: uACPI, for interrupt routing, the power button and power-off 2026-10-22 16:12:28 +02:00
zsh licence: SchOS is GPL-2.0-or-later, no longer Apache-2.0 2026-10-22 08:48:45 +02:00
zstd SCFF: the live root ships compressed, with Xorg and Window Maker 2026-10-24 21:17:31 +02:00
Makefile input, fb, vt, sysfs: the kernel calls Xorg makes 2026-10-24 12:06:04 +02:00