Keith Packard <kei...@keithp.com> writes: > This lets an application open a suitable DRM device and pass the file > descriptor to the mode setting driver through an environment variable. > > There's a companion application, xlease, which creates a DRM master by > leasing an output from another X server. That is available at > > git clone git://people.freedesktop.org/~keithp/xlease > > Signed-off-by: Keith Packard <kei...@keithp.com> > --- > hw/xfree86/drivers/modesetting/driver.c | 29 ++++++++++++++++++++++++++++- > hw/xfree86/drivers/modesetting/driver.h | 1 + > 2 files changed, 29 insertions(+), 1 deletion(-) > > diff --git a/hw/xfree86/drivers/modesetting/driver.c > b/hw/xfree86/drivers/modesetting/driver.c > index 577559ea6..074872e97 100644 > --- a/hw/xfree86/drivers/modesetting/driver.c > +++ b/hw/xfree86/drivers/modesetting/driver.c > @@ -194,11 +194,28 @@ modesettingEntPtr ms_ent_priv(ScrnInfoPtr scrn) > return pPriv->ptr; > } > > +static int > +get_passed_fd(void) > +{ > + char *fdstr = getenv("XF86_VIDEO_MODESETTING_FD");
Any security concerns with a suid xserver here?
signature.asc
Description: PGP signature
_______________________________________________ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: https://lists.x.org/mailman/listinfo/xorg-devel