Bug 273161

Summary: x11-servers/xorg-server: rootless without setuid bit
Product: Ports & Packages Reporter: Jan Beich <jbeich>
Component: Individual Port(s)Assignee: freebsd-x11 (Nobody) <x11>
Status: New ---    
Severity: Affects Only Me CC: bsd, freebsd
Priority: --- Keywords: needs-patch
Version: Latest   
Hardware: Any   
OS: Any   

Description Jan Beich freebsd_committer freebsd_triage 2023-08-16 12:00:11 UTC
When using KMS drivers it's possible to drop root priveleges[1] but this is only implemented for Linux and OpenBSD. Devuan added libseat support[2], so one can use seatd like wlroots and Weston. seatd is supported on FreeBSD but libseat in xorg-server is interleaved with Linux-specific code thus not usable on FreeBSD without extra work.

[1] https://gitlab.freedesktop.org/xorg/xserver/-/commit/e7b84ca46944
[2] https://git.devuan.org/devuan/xorg-server/src/branch/suites/experimental/debian/patches/0001-Support-libseat.patch
    https://git.devuan.org/devuan/xorg-server/compare/suites/experimental...support-libseat-upstream