"suid root" bug in isadump/isaset

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20090417/d99dbe01/attachment.html 


[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux