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:
9cefc64
)
weston-launch: Only drop privileges if running as root
author
Tomeu Vizoso
<tomeu@tomeuvizoso.net>
Tue, 1 Oct 2013 10:20:29 +0000
(12:20 +0200)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Tue, 1 Oct 2013 17:41:59 +0000
(10:41 -0700)
src/weston-launch.c
patch
|
blob
|
history
diff --git
a/src/weston-launch.c
b/src/weston-launch.c
index
525c61c
..
1b560af
100644
(file)
--- a/
src/weston-launch.c
+++ b/
src/weston-launch.c
@@
-577,7
+577,8
@@
launch_compositor(struct weston_launch *wl, int argc, char *argv[])
if (wl->new_user)
setup_session(wl);
- drop_privileges(wl);
+ if (geteuid() == 0)
+ drop_privileges(wl);
setenv_fd("WESTON_TTY_FD", wl->tty);
setenv_fd("WESTON_LAUNCHER_SOCK", wl->sock[1]);