1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/x11-toolkits/wlroots/pkg-message
Jan Beich 7845716756 x11-toolkits/wlroots: enable LIBSEAT by default
When seatd is running don't use setuid bit. Otherwise, use wlroots
direct session like before to keep POLA. For example,

  $ sway
  [ERROR] [libseat] [libseat/libseat.c:73] libseat_open_seat: No backend was able to open a seat
  [ERROR] [backend/session/libseat.c:102] Unable to create seat: Function not implemented
  <direct session started>

  $ ps -lp $(pgrep -x sway)
   UID   PID  PPID C PRI NI    VSZ    RSS MWCHAN STAT TT     TIME COMMAND
  1234 63621 63611 0  20  0 279152 107156 select S    v0  0:01.11 sway
     0 63623 63621 6  52  0  32124  18396 sbwait I    v0  0:00.00 sway

vs.

  $ service seatd onestart
  $ sway
  <libseat session started>

  $ ps -lp $(pgrep -x sway)
   UID   PID  PPID C PRI NI    VSZ    RSS MWCHAN STAT TT     TIME COMMAND
  1234 46290 46280 4  20  0 332924 105248 select S    v0  0:05.47 sway
2020-10-28 14:41:59 +00:00

21 lines
725 B
Plaintext

[
{ type: install
message: <<EOM
Known issues:
- On FreeBSD 11.* kernel needs to be rebuilt with EVDEV_SUPPORT
- On FreeBSD 11.* drm-kmod needs https://github.com/FreeBSDDesktop/kms-drm/pull/213
When built with LIBSEAT enabled you may see the following:
[ERROR] [libseat] [libseat/libseat.c:73] libseat_open_seat: No backend was able to open a seat
[ERROR] [backend/session/libseat.c:102] Unable to create seat: Function not implemented
Possible solutions (select one):
- Ignore libseat errors to let wlroots use direct session
- Start seatd (e.g., `service seatd onestart`) and optionally
prevent compositor from using SUID (e.g., `chmod u-s $(which sway)`)
- Rebuild sysutils/seatd with SUID enabled
EOM
}
]