[PATCH xserver] check for elevated privileges rather than just euid=0

Jeremy Huddleston jeremyhu at apple.com
Thu Oct 6 12:00:05 PDT 2011

I don't know if xf86PrivsElevated is the right name for this API.  Users might have access even without *elevated* privs.  What we really want to know is if the user is privileged, and I can see us eventually updating the implementation of this call to reflect changes in access controls.  Perhaps something like xf86IsPrivileged()


On Oct 6, 2011, at 6:05 AM, 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:
> http://lists.freedesktop.org/archives/xorg-devel/2011-September/025853.html
> Signed-off-by: antoine <antoine at nagafix.co.uk>
> <0001-xserver-check-for-elevated-privileges-rather-than-ju.patch>_______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel

Jeremy Huddleston

Rebuild Sudan
 - Board of Directors
 - http://www.rebuildsudan.org

Berkeley Foundation for Opportunities in Information Technology
 - Advisory Board
 - http://www.bfoit.org

More information about the xorg-devel mailing list