Bug 1478135
Summary: | Fedora 26 nfs server doesn't export SELinux file context labels | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Edgar Hoch <edgar.hoch> |
Component: | nfs-utils | Assignee: | Steve Dickson <steved> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 26 | CC: | bcodding, bfields, goeran, jlayton, smayhew, steved |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-08-31 15:10:59 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Edgar Hoch
2017-08-03 16:32:57 UTC
(In reply to Edgar Hoch from comment #0) > Has options changed? (I have not found any notes about a change.) Yes, apologies, this should have been documented in release notes or somewhere. SELinux labeling is still supported, but it is now off by default, and you now need to add the "security_label" option to any export for which you wish the server to support for security labels. Having security labels on by default turned out to be a problem; see bug 1406885 for details. Obviously we normally don't want to break working functionality on upgrade, but in this case we were stuck breaking either setups that depended on selinux or those for which the server labels didn't make sense, and the former seemed the lesser evil. Closing under assumption this is indeed the issue you're hitting. Adding the security_label export option, restarting the server, and remounting from the clients should resolve the problem. If not, please reopen the bug. Thanks for your answer. But export option "security_label" doesn't solve the problem. I have already used export option "security_label" since a year (August 2016), I think I have added this option when I installed Fedora 24. It also works with Fedora 25. But on Fedora 26 it seems to be ignored. In my "Steps to Reproduce:" you can see that I have already used "security_label". (In reply to Edgar Hoch from comment #2) > In my "Steps to Reproduce:" you can see that I have already used > "security_label". Oops, thanks for the correction. I can try to reproduce when I'm back at work in a couple weeks. Till then, I think the next step would be to take a look at the network traffic. So, start something like "tcpdump -s0 -wtmp.pcap -i<your ethernet address>", then reproduce the problem, then kill tcpdump and attach tmp.pcap to this bug. And/or also take a look at tcpdump in wireshark yourself--first things we're looking for: - check the "minorversion" field in an NFSv4 compound to make sure it's 2. - look for GETATTRs of the "supported_attributes" field for filehandles in the relevant filesystem to see if the server's reporting support for the security label attribute. It seems that the problem is solved by a newer kernel (currently running kernel-4.12.8-300.fc26.x86_64) - or by updates of other packages. I will upgrade other servers to Fedora 26 in the next two weeks and report if they works as expected. I have installed other Fedora 26 nfs servers and SELinux labels are correctly available on nfs client. So the problem is solved; I cannot tell why, it seems that some of updated packages solved the problem. |