Bug 194002 - hddtemp init fails at boot
hddtemp init fails at boot
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: hddtemp (Show other bugs)
5
All Linux
medium Severity medium
: ---
: ---
Assigned To: Ville Skyttä
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2006-06-04 04:45 EDT by morgan read
Modified: 2007-11-30 17:11 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-06-04 06:08:01 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description morgan read 2006-06-04 04:45:18 EDT
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 05:18:17 EDT
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 05:45:33 EDT
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 06:08:01 EDT
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 06:41:05 EDT
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 07:06:59 EDT
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.