xserver-multidpi/hw/xfree86
Antoine Martin ead968a430 xserver: check for elevated privileges not uid=0
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 Martin <antoine@nagafix.co.uk>
Tested-by: Michal Suchanek <hramrach at centrum.cz>
Reviewed-by: Jamey Sharp <jamey at minilop.net>
Reviewed-by: Adam Jackson <ajax@redhat.com>
2011-12-16 15:38:13 -08:00
..
common xserver: check for elevated privileges not uid=0 2011-12-16 15:38:13 -08:00
ddc Remove redundant redeclarations of functions in the same header file 2011-11-23 12:15:07 -08:00
dixmods xfree86: Link modules with -module 2011-10-15 21:18:47 -07:00
doc Fix gcc -Wwrite-strings warnings in xf86 ddx 2011-11-23 12:15:07 -08:00
dri Use internal temp variable for swap macros 2011-09-21 17:12:04 -04:00
dri2 dri2: Register the DRI2DrawableType after server regeneration 2011-11-18 11:26:03 -08:00
exa xfree86: Link modules with -module 2011-10-15 21:18:47 -07:00
fbdevhw fbdevhw: iterate over all modes that match a mode. (v3) 2011-12-06 16:00:35 +00:00
i2c Fix gcc -Wwrite-strings warnings in xf86 ddx 2011-11-23 12:15:07 -08:00
int10 int10: Port internal users off xf86MapVidMem 2011-10-15 21:18:46 -07:00
loader LoaderOpen returns either a valid pointer or NULL, so don't check for < 0 2011-12-05 14:33:00 -08:00
man xorg.conf.man: fix 382: warning: missing )' (got R') #35054 2011-10-19 17:22:18 -07:00
modes Remove duplicate declaration of xf86ValidateModesFlags in xf86Modes.h 2011-12-12 17:03:12 -08:00
os-support sun_agp: cast key to uintptr_t before casting to (int *) 2011-11-23 12:15:06 -08:00
parser xf86 parser: convert Error to a varargs macro to clear gcc format warnings 2011-12-12 17:03:13 -08:00
ramdac Fix gcc -Wwrite-strings warnings in xf86 ddx 2011-11-23 12:15:07 -08:00
shadowfb xfree86: Link modules with -module 2011-10-15 21:18:47 -07:00
utils Fix gcc -Wwrite-strings warnings in xf86 ddx 2011-11-23 12:15:07 -08:00
vbe Fix gcc -Wwrite-strings warnings in xf86 ddx 2011-11-23 12:15:07 -08:00
vgahw pci: Remove xf86MapDomainMemory 2011-10-15 21:18:46 -07:00
x86emu x86emu: constify debug strings 2011-12-12 17:03:11 -08:00
xaa Merge remote-tracking branch 'whot/for-keith' 2011-12-08 20:57:26 -08:00
.gitignore xfree86: Move sdksyms generation to ddx toplevel 2011-06-23 05:28:31 -07:00
Makefile.am sdksyms.sh may not be executable. 2011-10-01 17:35:19 +02:00
sdksyms.sh xfree86: Deprecate the use of xf86PciInfo.h 2011-11-18 11:26:02 -08:00
xorgconf.cpp xfree86: use sed rather than cpp to perform string substitutions 2011-01-18 15:11:14 -08:00