Red Hat Bugzilla – Bug 430950
setroubleshoot recommended actions should escape special characters in path names or file names
Last modified: 2008-01-30 15:26:32 EST
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)
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 ***