Bug 273161 - x11-servers/xorg-server: rootless without setuid bit
Summary: x11-servers/xorg-server: rootless without setuid bit
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-x11 (Nobody)
URL:
Keywords: needs-patch
Depends on:
Blocks:
 
Reported: 2023-08-16 12:00 UTC by Jan Beich
Modified: 2023-10-04 12:55 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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