Bug 522087
Summary: | semanage does not work correctly with spaces in path | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | David Glaser <dsglaser> |
Component: | policycoreutils | Assignee: | Daniel Walsh <dwalsh> |
Status: | CLOSED WONTFIX | QA Contact: | BaseOS QE Security Team <qe-baseos-security> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 5.3 | CC: | dwalsh |
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: | 2009-10-15 18:32:25 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
David Glaser
2009-09-09 13:10:53 UTC
Sadly neither to the tools or libraries. We do not have a good solution to this other then, dont do that. Use a regular expression to get around it. Not my choice, it is a piece of software called Sassafras KeyServer that we are installing that is creating directories with spaces in it, and then has an executeable that is trying to do text relocation with libraries. It appears the parser of the policy files just needs to be fixed. Is this something that is in the pipeline to be one? "Just don't do that" doesn't sound like a good long term solution. I'm not sure what exactly you mean by using a regular expression to get around it either. Thanks, Dave Something like semanage fcontext -a -t <context>_t '/home/user/.*/file1' or semanage fcontext -a -t <context>_t '/home/user/[^/]*/file1' This is too difficult to fix and has an easy work around. |