summaryrefslogtreecommitdiff
path: root/include/os.h
diff options
context:
space:
mode:
authorNicolai Hähnle <nicolai.haehnle@amd.com>2018-03-13 17:46:34 -0400
committerAdam Jackson <ajax@redhat.com>2018-03-21 10:58:39 -0400
commit9ef602de46de2beae1d6231dc72a1a783a26122f (patch)
treeec24fcac5c81fae01ef9b0f201c60a508d557b5e /include/os.h
parent1519475a4382066707276d7463c7c6e52c382caa (diff)
os: move xf86PrivsElevated here
Having different types of code all trying to check for elevated privileges is a bad idea. This implementation is the most thorough one. Signed-off-by: Nicolai Hähnle <nicolai.haehnle@amd.com> Reviewed-by: Ben Crocker <bcrocker@redhat.com> Reviewed-by: Antoine Martin <antoine@nagafix.co.uk> Tested-by: Ben Crocker <bcrocker@redhat.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Diffstat (limited to 'include/os.h')
-rw-r--r--include/os.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/os.h b/include/os.h
index c956378b2..3646194a0 100644
--- a/include/os.h
+++ b/include/os.h
@@ -366,6 +366,9 @@ System(const char *cmdline);
#define Fclose(a) fclose(a)
#endif
+extern _X_EXPORT Bool
+PrivsElevated(void);
+
extern _X_EXPORT void
CheckUserParameters(int argc, char **argv, char **envp);
extern _X_EXPORT void