backlight: Drop rights before executing pkexec
authorHans de Goede <hdegoede@redhat.com>
Mon, 17 Feb 2014 12:16:53 +0000 (13:16 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 17 Feb 2014 18:38:54 +0000 (18:38 +0000)
commitb5229c6e15964e723a7bb99d3c2c20a2fa168e3b
tree29437b6f2df696b5ee0b2c8e8d4b08d5b1660668
parent27a9dc4ce8fa3ba56f68e04d11a6272348772039
backlight: Drop rights before executing pkexec

Event though we've failed to open the backlight normally, we may still be
running under a suid-root xserver, so drop any elevated rights before
executing what we hope will be pkxec.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
src/backlight.c