From b76237e508d7440ce3f210b03d03f09723506436 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Thu, 4 Apr 2013 21:36:20 -0400 Subject: [PATCH] compositor-drm: Allow running without launcher if effective UID is 0 This lets us keep running weston as root or setuid root. --- src/compositor-drm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compositor-drm.c b/src/compositor-drm.c index 6e0a126d..5fccace9 100644 --- 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; }