|
|
9e2b258 |
From 17830918f1bebf3696c6660f602de84d3efeb1ac Mon Sep 17 00:00:00 2001
|
|
|
9e2b258 |
From: Hans de Goede <hdegoede@redhat.com>
|
|
|
9e2b258 |
Date: Thu, 17 Apr 2014 15:50:44 +0200
|
|
|
9e2b258 |
Subject: [PATCH] Fedora hack: Make the suid-root wrapper always start the
|
|
|
9e2b258 |
server with root rights
|
|
|
9e2b258 |
|
|
|
9e2b258 |
Do NOT upstream.
|
|
|
9e2b258 |
|
|
|
9e2b258 |
Since most display managers are not ready yet to start Xorg in way which will
|
|
|
9e2b258 |
keep it working without root-rights, see:
|
|
|
9e2b258 |
https://fedoraproject.org/wiki/Changes/XorgWithoutRootRights
|
|
|
9e2b258 |
|
|
|
9e2b258 |
Just keep starting X as root for now, but do it through the wrapper. This
|
|
|
9e2b258 |
allows people who want to test Xorg without root rights to create a
|
|
|
9e2b258 |
/etc/X11/Xwrapper.config file with:
|
|
|
9e2b258 |
|
|
|
9e2b258 |
needs_root_rights = auto
|
|
|
9e2b258 |
|
|
|
9e2b258 |
In there to test XorgWithoutRootRights without breaking people's setups due
|
|
|
9e2b258 |
to non ready display-managers.
|
|
|
9e2b258 |
|
|
|
9e2b258 |
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
|
|
|
9e2b258 |
---
|
|
|
9e2b258 |
hw/xfree86/xorg-wrapper.c | 2 +-
|
|
|
9e2b258 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
9e2b258 |
|
|
|
9e2b258 |
diff --git a/hw/xfree86/xorg-wrapper.c b/hw/xfree86/xorg-wrapper.c
|
|
|
9e2b258 |
index 90c8c11..539bfe4 100644
|
|
|
9e2b258 |
--- a/hw/xfree86/xorg-wrapper.c
|
|
|
9e2b258 |
+++ b/hw/xfree86/xorg-wrapper.c
|
|
|
9e2b258 |
@@ -153,7 +153,7 @@ int main(int argc, char *argv[])
|
|
|
9e2b258 |
int kms_cards = 0;
|
|
|
9e2b258 |
int total_cards = 0;
|
|
|
9e2b258 |
int allowed = CONSOLE_ONLY;
|
|
|
9e2b258 |
- int needs_root_rights = -1;
|
|
|
9e2b258 |
+ int needs_root_rights = 1;
|
|
|
9e2b258 |
|
|
|
cec8696 |
progname = argv[0];
|
|
|
9e2b258 |
|
|
|
9e2b258 |
--
|
|
|
9e2b258 |
1.9.0
|
|
|
9e2b258 |
|