weston-launch: Only drop privileges if running as root

dev
Tomeu Vizoso 11 years ago committed by Kristian Høgsberg
parent 9cefc647cc
commit d7865b2f75
  1. 1
      src/weston-launch.c

@ -577,6 +577,7 @@ launch_compositor(struct weston_launch *wl, int argc, char *argv[])
if (wl->new_user)
setup_session(wl);
if (geteuid() == 0)
drop_privileges(wl);
setenv_fd("WESTON_TTY_FD", wl->tty);

Loading…
Cancel
Save