chiark / gitweb /
polkit: Avoid race condition in scraping /proc
authorColin Walters <walters@verbum.org>
Thu, 22 Aug 2013 17:55:21 +0000 (13:55 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 18 Sep 2013 16:06:04 +0000 (11:06 -0500)
commit72fd713962ca2c2450e23b01d9e22017a7e28fd4
tree81549ab1c80eb0bfff2ee15aa1fa5cd3d1a0cd41
parent00f117a59973f9c4e1a966252d668949f62a9265
polkit: Avoid race condition in scraping /proc

If a calling process execve()s a setuid program, it can appear to be
uid 0.  Since we're receiving requests over DBus, avoid this by simply
passing system-bus-name as a subject.
src/shared/polkit.c