Bug 430950

Summary: setroubleshoot recommended actions should escape special characters in path names or file names
Product: Red Hat Enterprise Linux 5 Reporter: Jeff Needle <jneedle>
Component: setroubleshootAssignee: John Dennis <jdennis>
Status: CLOSED DUPLICATE QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: 5.2   
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-01-30 20:26:32 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 Jeff Needle 2008-01-30 19:14:59 UTC
Description of problem:

Got a lovely message from setroubleshoot telling me exactly how to fix a
problem, as follows:

The following command will allow this access:
chcon -R -t samba_share_t /home/jneedle/directory with space/filename

Being an incredibly lazy sysadmin, I of course just cut and pasted that to the
command line.  Of course, it failed.  Maybe we should put the path in quotes or
escape special characters so this is cut-and-pasteable, making it even easier
for zombie sysadmins like myself to simply cut and paste these recommendations.

Version-Release number of selected component (if applicable):
setroubleshoot-1.8.11-4.el5.noarch (probably affects all releases)

Comment 1 John Dennis 2008-01-30 20:26:32 UTC
Good point Jeff, thank you. This problem has already been reported in bug
#416351, closing as a dup.

BTW, rather than escaping the characters as suggested in bug #416351 I prefer
your suggestion of quoting the arguments.

*** This bug has been marked as a duplicate of 416351 ***