[PATCH xserver] check for elevated privileges rather than just euid=0
lists.tormod at gmail.com
Thu Oct 6 12:17:28 PDT 2011
On Thu, Oct 6, 2011 at 3:05 PM, Antoine Martin wrote:
> This allows us to run the server as a normal user whilst still
> being able to use the -modulepath, -logfile and -config switches
> We define a xf86PrivsElevated which will do the checks and cache
> the result in case it is called more than once.
> Also renamed the paths #defines to match their new meaning.
> Original discussion which led to this patch can be found here:
> Signed-off-by: antoine <antoine at nagafix.co.uk>
+static Bool privsTested = FALSE;
+static Bool privsElevated = FALSE;
You probably want to move these variables inside the function since
they are not (and should not be) used outside it.
More information about the xorg-devel