Bug 93377

Summary: `Xorg -version` is broken with suid wrapper
Product: xorg Reporter: Jasper St. Pierre <jstpierre>
Component: Server/GeneralAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED NOTABUG QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium CC: jwrdegoede, peter.hutterer
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Jasper St. Pierre 2015-12-14 21:26:48 UTC
$ Xorg -version
/usr/libexec/Xorg.wrap: Only console users are allowed to run the X server
Comment 1 Hans de Goede 2015-12-15 12:34:12 UTC
Hi Jasper,

I would not call that broken, the wrapper is as thin as possible because any extra code results in possible extra security issues, as such I really do not want the wrapper to get into parsing the cmdline and then deciding that some cmdline options are ok to pass through for non console users.

One can always do:

/usr/libexec/Xorg -version

On systems with the wrapper to get the version when not on the console.

Regards,

Hans

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.