mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-07 13:08:04 +02:00
weston-launch: Only drop privileges if running as root
This commit is contained in:
parent
9cefc647cc
commit
d7865b2f75
1 changed files with 2 additions and 1 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue