Bug 138587

Summary: /etc/init.d/mDNSResponder missing quotes on runuser command
Product: [Fedora] Fedora Reporter: Matthew Costello <matthew>
Component: howlAssignee: Jason Vas Dias <jvdias>
Status: CLOSED CANTFIX QA Contact:
Severity: low Docs Contact:
Priority: medium    
Version: 3CC: mattdm
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-10-30 21:48:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Matthew Costello 2004-11-10 01:22:33 UTC
Description of problem:
The runuser line in /etc/rc.d/init.d/mDNSResponder is missing quotes
around the -c option, so the $OTHER_MDNSRD_OPTS argument is actually
part of the runuser command instead of the mDNSResponder command.
The fix is to quote the line as follows
   runuser -s /bin/bash - nobody -c "mDNSResponder $OTHER_MDNSRD_OPTS"
> /dev/null

Version-Release number of selected component (if applicable):
howl-0.9.6-6

How reproducible:
Define a non-empty value for OTHER_MDNSRD_OPTS. In my case I had the line
    OTHER_MDNSRD_OPTS="-i eth0"
in /etc/sysconfig/network.

Steps to Reproduce:
1. Add OTHER_MDNSRD_OPTS="-i eth0" to /etc/sysconfig/network
2. run "service mDNSResponder start" as root
3.
  
Actual results:
Error message from runuser saying that '-i' is an illegal option.

Expected results:


Additional info:

Comment 1 Jason Costomiris 2004-12-13 18:53:53 UTC
I can confirm both the problem as well as the solution.



Comment 2 Matthew Miller 2006-07-10 22:43:01 UTC
Fedora Core 3 is now maintained by the Fedora Legacy project for security
updates only. If this problem is a security issue, please reopen and
reassign to the Fedora Legacy product. If it is not a security issue and
hasn't been resolved in the current FC5 updates or in the FC6 test
release, reopen and change the version to match.

Thank you!


Comment 3 John Thacker 2006-10-30 21:48:48 UTC
FC3 and FC4 are currently maintained by Fedora Legacy for security fixes only. 
howl is currently obsolete and has been replaced by avahi in the still fully
supported versions of Fedora Core, FC5 and FC6.  Since this is not a security
bug, it will not be fixed.  avahi has a substantial amount of changes from howl,
so please retest this bug against a newer install of Fedora Core if possible. 
If a similar bug is present in FC5 or FC6, please reopen the bug and change the
component to avahi.  Thanks!