Bug 473856
Summary: | restorecon does not work if directory context was added with a trailing slash | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Murray McAllister <mmcallis> | ||||
Component: | policycoreutils | Assignee: | Daniel Walsh <dwalsh> | ||||
Status: | CLOSED WONTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 10 | CC: | dwalsh, mgrepl, vdanen | ||||
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: | 2008-12-01 13:47:36 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: | |||||||
Attachments: |
|
The problem here is you are adding a path that is a regular expression. So from a regex point of view /test does not match /test/. Since there is lots of examples where this is going to fail, I am going to close this as wontfix. |
Created attachment 325167 [details] semanage tests Description of problem: 1. semanage fcontext -a -t samba_share_t /test 2. restorecon -R -v /test Changes /test type to samba_share_t. Note: no slash on the end of "/test". 1. semanage fcontext -a -t samba_share_t /test/ 2. restorecon -R -v /test /test still uses default_t type. Note: trailing slash, "/test/". See attached for full steps. Version-Release number of selected component (if applicable): policycoreutils-2.0.57-11.fc10.i386 selinux-policy-3.5.13-18.fc10.noarch selinux-policy-targeted-3.5.13-18.fc10.noarch libselinux-utils-2.0.73-1.fc10.i386 libselinux-python-2.0.73-1.fc10.i386 libselinux-2.0.73-1.fc10.i386