1 From: Philippe Coval <philippe.coval@open.eurogiciel.org>
2 Date: Tue, 10 Jun 2014 15:01:27 +0200
3 Subject: downstream: allow to start for system users
5 Change-Id: I1529784d5dd9ce30e595de80c66d895d97338ff8
6 Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
8 src/launcher-util.c | 4 ++++
9 1 file changed, 4 insertions(+)
11 diff --git a/src/launcher-util.c b/src/launcher-util.c
12 index ac764dc..f53bb33 100644
13 --- a/src/launcher-util.c
14 +++ b/src/launcher-util.c
15 @@ -409,7 +409,11 @@ weston_launcher_connect(struct weston_compositor *compositor, int tty,
18 launcher->logind = NULL;
19 +#ifdef LOCAL_CONFIG_WESTON_ALLOW_SYS_UID
20 + if (geteuid() <= 499) { /* 499 = SYS_UID_MAX in login.defs, but it should be parsed */
24 if (setup_tty(launcher, tty) == -1) {