summaryrefslogtreecommitdiff
path: root/hw/xfree86/common/xf86Priv.h
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 /hw/xfree86/common/xf86Priv.h
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 'hw/xfree86/common/xf86Priv.h')
-rw-r--r--hw/xfree86/common/xf86Priv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/xfree86/common/xf86Priv.h b/hw/xfree86/common/xf86Priv.h
index e0b18098e..255407b48 100644
--- a/hw/xfree86/common/xf86Priv.h
+++ b/hw/xfree86/common/xf86Priv.h
@@ -145,6 +145,7 @@ extern _X_EXPORT Bool xf86LoadModules(char **list, pointer *optlist);
extern _X_EXPORT int xf86SetVerbosity(int verb);
extern _X_EXPORT int xf86SetLogVerbosity(int verb);
extern _X_EXPORT Bool xf86CallDriverProbe( struct _DriverRec * drv, Bool detect_only );
+extern _X_EXPORT Bool xf86PrivsElevated(void);
#endif /* _NO_XF86_PROTOTYPES */