Skip to contentSkip to conversation

"suid root" bug in isadump/isaset

lm-sensors Linux User 2 participants 2 messages Apr 17, 2009 – Apr 19, 2009

lore
Share & tools
lore

Linux User

author
#0 lore raw

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

#1 lore raw
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