[PATCH 0/2] Preserve framebuffer during rmfb / drm fd close.

Maarten Lankhorst
2015-09-09T14:40:55Z

This is breaks the abi slightly, but allows preserving the framebuffer contents across processes.
Any system compositor or fbdev should take care of resetting the planes and mode anyway.

Restoring a framebuffer requires a call to getfb, which checks for
CAP_SYS_ADMIN, DRM_MASTER or access to the control file. Any of those
require privileges, so this shouldn't be a security issue.

Maarten Lankhorst (2):
drm/core: Preserve the framebuffer after removing it.
drm/core: Preserve the fb id on close.

drivers/gpu/drm/drm_crtc.c | 15 +++------------
1 file changed, 3 insertions(+), 12 deletions(-)

--
2.1.0

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org