diff options
author | Philippe Coval <philippe.coval@open.eurogiciel.org> | 2014-06-10 15:01:27 +0200 |
---|---|---|
committer | Stephane Desneux <stephane.desneux@open.eurogiciel.org> | 2014-06-13 16:32:55 +0200 |
commit | c07c6eef5169a0e75c4e9c062f3aaa744fce5880 (patch) | |
tree | cddb2816a76fb366eb3a572c8e970f2b6bd01b15 | |
parent | 91e86dc69782ad1fed6ab0e2dacdc14fdc287372 (diff) | |
download | weston-c07c6eef5169a0e75c4e9c062f3aaa744fce5880.tar.gz weston-c07c6eef5169a0e75c4e9c062f3aaa744fce5880.tar.bz2 weston-c07c6eef5169a0e75c4e9c062f3aaa744fce5880.zip |
downstream: allow to start for system users
Change-Id: I1529784d5dd9ce30e595de80c66d895d97338ff8
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
-rw-r--r-- | src/launcher-util.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/launcher-util.c b/src/launcher-util.c index ac764dc8..f53bb334 100644 --- a/src/launcher-util.c +++ b/src/launcher-util.c @@ -409,7 +409,11 @@ weston_launcher_connect(struct weston_compositor *compositor, int tty, seat_id, tty); if (r < 0) { launcher->logind = NULL; +#ifdef LOCAL_CONFIG_WESTON_ALLOW_SYS_UID + if (geteuid() <= 499) { /* 499 = SYS_UID_MAX in login.defs, but it should be parsed */ +#else if (geteuid() == 0) { +#endif if (setup_tty(launcher, tty) == -1) { free(launcher); return NULL; |