[PATCH weston] launcher: don't exit when user is not root

Emre Ucan eucan at de.adit-jv.com
Mon Oct 30 14:20:42 UTC 2017


weston does not need to be root.
It requires adjusting ownership on the given tty device.

If weston does not have proper rights, it will get
an error at startup anyway.

Signed-off-by: Emre Ucan <eucan at de.adit-jv.com>
---
 libweston/launcher-direct.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/libweston/launcher-direct.c b/libweston/launcher-direct.c
index a5d3ee5..b05d214 100644
--- a/libweston/launcher-direct.c
+++ b/libweston/launcher-direct.c
@@ -276,9 +276,6 @@ launcher_direct_connect(struct weston_launcher **out, struct weston_compositor *
 {
 	struct launcher_direct *launcher;
 
-	if (geteuid() != 0)
-		return -EINVAL;
-
 	launcher = zalloc(sizeof(*launcher));
 	if (launcher == NULL)
 		return -ENOMEM;
-- 
2.7.4



More information about the wayland-devel mailing list