summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAntoine Martin <antoine@nagafix.co.uk>2011-12-17 01:36:51 +0700
committerKeith Packard <keithp@keithp.com>2011-12-16 15:38:13 -0800
commitead968a4300c0adeff89b9886e888b6d284c75cc (patch)
treef0e9f78a3856f7b08abca9ecbdd78ce7c77c6b59 /include
parent2c1d0a539c0fb1860ac89a00d1fb609f1959e1b6 (diff)
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>
Diffstat (limited to 'include')
-rw-r--r--include/xorg-config.h.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/xorg-config.h.in b/include/xorg-config.h.in
index 6b9230f3c..2cc416ae7 100644
--- a/include/xorg-config.h.in
+++ b/include/xorg-config.h.in
@@ -130,4 +130,10 @@
/* Use libpciaccess */
#undef XSERVER_LIBPCIACCESS
+/* Have setugid */
+#undef HAVE_ISSETUGID
+
+/* Have getresuid */
+#undef HAVE_GETRESUID
+
#endif /* _XORG_CONFIG_H_ */