Open genpfault opened 2 weeks ago
Looks like the No handle set on framebuffer: maybe you need some additional capabilities?
message is generated by this block in response to drmModeGetFB2()
neglecting to fill out the handles
member of drm->mfb
.
drmModeGetFB2()
is a thin wrapper around the DRM_IOCTL_MODE_GETFB2
ioctl.
The DRM_IOCTL_MODE_GETFB2
docs have these notes (emphasis mine):
If the client is DRM master or has CAP_SYS_ADMIN, drm_mode_fb_cmd2.handles will be filled with GEM buffer handles. Planes are valid until one has a zero handle – this can be used to compute the number of planes.
Otherwise, drm_mode_fb_cmd2.handles will be zeroed and planes are valid until one has a zero drm_mode_fb_cmd2.pitches.
Trying to run
kmsvnc
without root fails with:Full log:
Which capabilities does
kmsvnc
need?For what it's worth granting
cap_sys_admin
tokmsvnc
via:...fixes it on my system (Debian Bookworm, KDE Wayland session).