xfce4-sensors doesn't start with hddtemp + suid
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
xfce4-sensors-plugin (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
$ LANG=C xfce4-sensors
"hddtemp" was not executed correctly, although it is executable. This is most probably due to the disks requiring root privileges to read their temperatures, and "hddtemp" not being setuid root.
An easy but dirty solution is to run "chmod u+s /usr/sbin/hddtemp" as root user and restart this plugin or its panel.
Calling "/usr/sbin/hddtemp -n -q /dev/sda" gave the following error:
/dev/sda: open: Permission denied
with a return value of 256.
OK, so we set suid bit to hddtemp:
$ sudo chmod u+s /usr/sbin/hddtemp
$ xfce4-sensors
*** glibc detected *** xfce4-sensors: free(): invalid pointer: 0x0000000002352c90 ***
======= Backtrace: =========
/lib/libc.
/lib/libc.
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
xfce4-sensors[
xfce4-sensors[
/lib/libc.
xfce4-sensors[
======= Memory map: ========
00400000-00403000 r-xp 00000000 08:01 494837 /usr/bin/
00602000-00603000 r--p 00002000 08:01 494837 /usr/bin/
00603000-00604000 rw-p 00003000 08:01 494837 /usr/bin/
02212000-0237a000 rw-p 02212000 00:00 0 [heap]
3d21200000-
3d2141f000-
3d21420000-
3d21600000-
3d2160d000-
3d2180d000-
3d2180e000-
3d21a00000-
3d21a0a000-
3d21c09000-
3d21c0a000-
3d22000000-
3d2200f000-
3d2220e000-
3d2220f000-
3d22210000-
3d22400000-
3d22568000-
3d22768000-
3d2276c000-
3d2276d000-
3d22800000-
3d22802000-
3d22a02000-
3d22a03000-
3d22c00000-
3d22c84000-
3d22e83000-
3d22e84000-
3d23000000-
3d23017000-
3d23216000-
3d23217000-
3d23218000-
$ xfce4-sensors -v
Xfce4 Sensors 0.10.99.6
$ lsb_release -rd
Description: Ubuntu jaunty (development branch)
Release: 9.04
$ uname -a
Linux host 2.6.28-2-rt #6-Ubuntu SMP PREEMPT RT Tue Mar 10 02:10:20 UTC 2009 x86_64 GNU/Linux
Related branches
Changed in xfce4-sensors-plugin: | |
status: | New → Confirmed |
This bug was fixed in the package xfce4-sensors- plugin - 0.10.99.6-0ubuntu2
--------------- plugin (0.10.99. 6-0ubuntu2) jaunty; urgency=low
xfce4-sensors-
* debian/ patches/ 01_fix_ segfault_ at_startup. patch: correctly init *checktext
to NULL, fixes a crash in free() with invalid pointer [upstream svn r6985]
(LP: #257656, #344015, #345678).
-- Lionel Le Folgoc <email address hidden> Thu, 26 Mar 2009 21:03:50 +0100