uxa: Check for access to backlight interface
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 13 Feb 2014 16:18:43 +0000 (16:18 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 13 Feb 2014 16:26:49 +0000 (16:26 +0000)
commit9a9f6a9487201e4c80338e771eec28067f044240
tree0a7f17a8040aae529ae0c76d9ad41f03a29a99dd
parent611490a176d9bfd136f4340f7c31e0e0f0beea4e
uxa: Check for access to backlight interface

Before attaching properties to any connector, check that we can indeed
control the backlight through the sysfs interface by doing an access
check. If the xserver is started without root privileges, we cannot
write through /sys/class/backlight and so should take care not to
advertise that we can.

Reported-by: Hans de Geode <hdegeode@redhat.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/uxa/intel_display.c