projects
/
profile
/
ivi
/
weston-ivi-shell.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb3c73f
)
compositor-drm: Allow running without launcher if effective UID is 0
author
Kristian Høgsberg
<krh@bitplanet.net>
Fri, 5 Apr 2013 01:36:20 +0000
(21:36 -0400)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Fri, 5 Apr 2013 01:36:20 +0000
(21:36 -0400)
This lets us keep running weston as root or setuid root.
src/compositor-drm.c
patch
|
blob
|
history
diff --git
a/src/compositor-drm.c
b/src/compositor-drm.c
index
6e0a126
..
5fccace
100644
(file)
--- a/
src/compositor-drm.c
+++ b/
src/compositor-drm.c
@@
-2167,9
+2167,9
@@
drm_compositor_create(struct wl_display *display,
}
/* Check if we run drm-backend using weston-launch */
- if (ec->base.launcher_sock == -1) {
+ if (ec->base.launcher_sock == -1
&& geteuid() != 0
) {
weston_log("fatal: drm backend should be run "
- "using weston-launch binary\n");
+ "using weston-launch binary
or as root
\n");
goto err_compositor;
}