"suid root" bug in isadump/isaset
Dear Lm- Sensors Developers,
both isadump and isaset contain the check:
if (getuid()) {
fprintf(stderr, "Error: Can only be run as root "
"(or make it suid root)\n");
exit(1);
}The text of the error message suggests that these programs could be installed "suid root". If this is the case, the check should use "geteuid()" instead of "getuid()".
Kind regards,
Linux User
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 4 lines · Linux User
Dear Lm- Sensors Developers,
both isadump and isaset contain the check:
Quoted 8 lines
if (getuid()) { fprintf(stderr, "Error: Can only be run as root " "(or make it suid root)\n"); exit(1); }The text of the error message suggests that these programs could be installed "suid root". If this is the case, the check should use "
geteuid()" instead of "getuid()".
Done, thanks.
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors