Bug 194002 - hddtemp init fails at boot
Summary: hddtemp init fails at boot
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: hddtemp
Version: 5
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Ville Skyttä
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-06-04 08:45 UTC by morgan read
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2006-06-04 10:08:01 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description morgan read 2006-06-04 08:45:18 UTC
Description of problem:
hddtemp init fails at boot with:
/etc/sysconfig/hddtemp: line 7: /dev/hda: Permission denied

There's no problem running hddtemp /dev/hda from the cmd line, and suspect
selinux is denying permission?

Version-Release number of selected component (if applicable):
[root@morgansmachine iputils]# hddtemp -v
hddtemp version 0.3-beta15


How reproducible:
Always

Steps to Reproduce:
1.Add /dev/hda to /etc/sysconfig/hddtemp
2.Set init to run at boot
3.
  
Actual results:
Failure

Expected results:
OK

Additional info:

Comment 1 Ville Skyttä 2006-06-04 09:18:17 UTC
How does your /etc/sysconfig/hddtemp look like?  The default one only has 4
lines but your error message says line 7.  Also, please look for related "avc:
denied" messages in /var/log/messages and post them here.

What about smartd, do you happen to be starting it at boot time too?  If this is
a selinux issue, I'd expect it to fail the same way.

Comment 2 morgan read 2006-06-04 09:45:33 UTC
smartd running fine.

nothing in messages for "avc:denied".

/etc/sysconfig/hddtemp :

#
# hddtemp(8) daemon options.  Add at least the disk(s) you want to monitor here.
#
HDDTEMP_OPTIONS="-l 127.0.0.1"

### Added MR 3-6-06
/dev/hda


Comment 3 Ville Skyttä 2006-06-04 10:08:01 UTC
The way you have added /dev/hda to the config file means that it will try to
execute /dev/hda, not add it to hddtemp's options.  Remove everything starting
from the "### ..." line and append /dev/hda to HDDTEMP_OPTIONS, like:

HDDTEMP_OPTIONS="-l 127.0.0.1 /dev/hda"

Comment 4 morgan read 2006-06-04 10:41:05 UTC
Ooops.  Thanks.

You've closed "notabug", but perhaps a brief comment at the head of
/etc/sysconfig/hddtemp to the effect of your note above would stop others making
the same mistake?

Comment 5 Ville Skyttä 2006-06-04 11:06:59 UTC
Yep, already added in my local working copy, will be in the next package revision:

# hddtemp(8) daemon options.  Add at least the disk(s) you want to monitor to
# HDDTEMP_OPTIONS.



Note You need to log in before you can comment on or make changes to this bug.