diff --git a/libweston/launcher-direct.c b/libweston/launcher-direct.c index 3bee27a2..d687ce3a 100644 --- a/libweston/launcher-direct.c +++ b/libweston/launcher-direct.c @@ -232,6 +232,12 @@ launcher_direct_open(struct weston_launcher *launcher_base, const char *path, in if (fd == -1) return -1; + if (geteuid() != 0) { + weston_log("WARNING! Succeeded opening %s as non-root user." + " This implies your device can be spied on.\n", + path); + } + if (fstat(fd, &s) == -1) { close(fd); return -1;