SchOS/etc
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
..
schinit libinput, seatd and libseat; sockets from accept() can pass descriptors 2026-10-26 16:51:39 +01:00
zsh X on the console: /dev/tty0, a palette, and startx that works 2026-10-24 19:44:10 +02:00
group Fix the boot logo source, and put /etc under version control 2026-08-09 16:51:04 +02:00
kshrc Fix the boot logo source, and put /etc under version control 2026-08-09 16:51:04 +02:00
locale.conf kbd: three layouts, and the arrow keys were sitting on top of UTF-8 2026-09-20 01:09:32 +02:00
motd Fix the boot logo source, and put /etc under version control 2026-08-09 16:51:04 +02:00
os-release ports: fastfetch, unpatched, and /etc/os-release so it can name us 2026-09-12 19:08:53 +02:00
passwd Fix the boot logo source, and put /etc under version control 2026-08-09 16:51:04 +02:00
profile kbd: three layouts, and the arrow keys were sitting on top of UTF-8 2026-09-20 01:09:32 +02:00
schos-getty Users and permissions: accounts, login, enforced file permissions, setuid, su, passwd, doas 2026-10-26 13:16:07 +01:00
udev-schos.rules Users and permissions: accounts, login, enforced file permissions, setuid, su, passwd, doas 2026-10-26 13:16:07 +01:00
udev-trigger eudev starts at boot; Xorg finds its input devices through it 2026-10-26 11:44:21 +01:00
vconsole.conf kbd: three layouts, and the arrow keys were sitting on top of UTF-8 2026-09-20 01:09:32 +02:00