[PATCH 1/2] compositor: drop privileges if not using the drm backend

Daniel Stone daniel at fooishbar.org
Tue Jan 31 01:04:49 PST 2012


Hi,

On 30 January 2012 13:02, Ander Conselvan de Oliveira
<ander.conselvan.de.oliveira at intel.com> wrote:
> +       /* Only drm-backend needs root privileges. */
> +       if (backend)
> +               seteuid(getuid());

You should be checking seteuid's return code here.

Cheers,
Daniel


More information about the wayland-devel mailing list