linux/tools/power
Michal Privoznik ad1d8313cd tools / cpupower: Correctly detect if running as root
Some operations, like frequency-set, need root privileges. However,
the way that this is detected is not correct. The getuid() is called,
while in fact geteuid() should be. This way we can allow
distributions or users to set SETUID flags on the cpupower binary if
they want to and let regular users change the cpu frequency governor.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Acked-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2014-12-19 23:01:03 +01:00
..
acpi ACPICA: acpiexec: Do not put STDIN into raw mode unless it is a terminal. 2014-10-21 00:39:40 +02:00
cpupower tools / cpupower: Correctly detect if running as root 2014-12-19 23:01:03 +01:00
x86 tools/power turbostat: tweak whitespace in output format 2014-08-15 17:34:44 -04:00