Bug 1211721
Summary: | SELinux is preventing restorecon from 'associate' accesses on the filesystem debug. | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Miroslav Grepl <mgrepl> |
Component: | policycoreutils | Assignee: | Petr Lautrbach <plautrba> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | awilliam, dominick.grift, dwalsh, extras-qa, lvrabec, mgrepl, moez.roy, plautrba |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Unspecified | ||
Whiteboard: | abrt_hash:75260e83ba3b5986ce52c99a677e54ac0d159668daf72c6cbc07759e644561dd | ||
Fixed In Version: | policycoreutils-2.3-8.fc21 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | 1211010 | Environment: | |
Last Closed: | 2015-07-03 18:42:51 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: | |||
Bug Depends On: | 1211010 | ||
Bug Blocks: |
Description
Miroslav Grepl
2015-04-14 17:54:24 UTC
>Note: you should also see warnings like "/sbin/setfiles: tmpDir/something is >not located in /etc/selinux/targeted/contexts/files/file_contexts"
There is broken
"setfiles -r"
functionality.
(In reply to Miroslav Grepl from comment #1) > >Note: you should also see warnings like "/sbin/setfiles: tmpDir/something is >not located in /etc/selinux/targeted/contexts/files/file_contexts" > > There is broken > > "setfiles -r" > > functionality. I don't understand. Is this the problem with LiveCD-Tools using "setfiles" instead of using "setfiles -r"? (In reply to Moez Roy from comment #2) > I don't understand. Is this the problem with LiveCD-Tools using "setfiles" > instead of using "setfiles -r"? No, there's a bug in setfiles code. The following patch fixes it: --- a/policycoreutils-2.3/setfiles/setfiles.c +++ b/policycoreutils-2.3/setfiles/setfiles.c @@ -334,7 +334,7 @@ int main(int argc, char **argv) argv[0]); exit(-1); } - set_rootpath(argv[optind]); + set_rootpath(optarg); break; case 's': use_input_file = 1; Yes, this bug has two parts - policy bug + setfiles bug. Petr, thanks for the patch. It works for me as expected. I believe this may be causing https://bugzilla.redhat.com/show_bug.cgi?id=1190377 . Investigating. policycoreutils-2.3-17.fc22 has been submitted as an update for Fedora 22. https://admin.fedoraproject.org/updates/policycoreutils-2.3-17.fc22 policycoreutils-2.3-8.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/policycoreutils-2.3-8.fc21 Package policycoreutils-2.3-8.fc21: * should fix your issue, * was pushed to the Fedora 21 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing policycoreutils-2.3-8.fc21' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2015-10818/policycoreutils-2.3-8.fc21 then log in and leave karma (feedback). policycoreutils-2.3-17.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report. policycoreutils-2.3-8.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report. |