Bug 595420
Summary: | mounting subdirectory of non-root user account fails | |||
---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Kamil Páral <kparal> | |
Component: | nfs-utils | Assignee: | Steve Dickson <steved> | |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | |
Severity: | medium | Docs Contact: | ||
Priority: | low | |||
Version: | 16 | CC: | jlayton, steved | |
Target Milestone: | --- | Keywords: | Reopened | |
Target Release: | --- | |||
Hardware: | All | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 599198 (view as bug list) | Environment: | ||
Last Closed: | 2012-07-02 22:27:52 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: | ||||
Bug Blocks: | 599198 |
Description
Kamil Páral
2010-05-24 15:11:50 UTC
Your home directory '/home/kparal/' has a permission mode of 0700 (owner only), correct? It appears the no_root_squash export option is broken on v4 mounts.. (In reply to comment #1) > Your home directory '/home/kparal/' has a permission > mode of 0700 (owner only), correct? Correct. I have completely the same problem on Fedora 16. It has appeared again. nfs-utils-1.2.5-3.fc16.x86_64 The problem also appears with: /home/kparal/devel/ 192.168.1.0/24(rw,all_squash,anonuid=500,anongid=500) Steve, could you please have a look at that? The proposed upstream patch Author: Steve Dickson <steved> Date: Tue May 29 08:57:04 2012 -0400 Honor the no_root_squash flag on pseudo roots. If root squashing is turned off on a export that has multiple directories, the parent directories of the pseudo exports that's built, also needs to have root squashing turned off. Signed-off-by: Steve Dickson <steved> diff --git a/utils/mountd/v4root.c b/utils/mountd/v4root.c index 708eb61..ad8a3e7 100644 --- a/utils/mountd/v4root.c +++ b/utils/mountd/v4root.c @@ -92,7 +92,14 @@ v4root_create(char *path, nfs_export *export) exp = export_create(&eep, 0); if (exp == NULL) return NULL; - xlog(D_CALL, "v4root_create: path '%s'", exp->m_export.e_path); + /* + * Honor the no_root_squash flag + */ + if ((curexp->e_flags & NFSEXP_ROOTSQUASH) == 0) + exp->m_export.e_flags &= ~NFSEXP_ROOTSQUASH; + xlog(D_CALL, "v4root_create: path '%s' flags 0x%x", + exp->m_export.e_path, exp->m_export.e_flags); + return &exp->m_export; } The koji build: http://koji.fedoraproject.org/koji/taskinfo?taskID=4112989 nfs-utils-1.2.5-8.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/nfs-utils-1.2.5-8.fc16 This fixes the problem only partially. Now works: /home/kparal/devel 192.168.1.0/24(rw,no_root_squash) Still doesn't work: /home/kparal/devel 192.168.1.0/24(rw,all_squash,anonuid=500,anongid=500) (In reply to comment #9) > This fixes the problem only partially. > > Now works: > /home/kparal/devel 192.168.1.0/24(rw,no_root_squash) > > Still doesn't work: > /home/kparal/devel 192.168.1.0/24(rw,all_squash,anonuid=500,anongid=500) Ok... Lets open up another bz about anonuid/anongid not working so we can move the no_root_squash fix along... OK? Okey dokey. Opened bug 826505. Package nfs-utils-1.2.5-8.fc16: * should fix your issue, * was pushed to the Fedora 16 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing nfs-utils-1.2.5-8.fc16' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-9466/nfs-utils-1.2.5-8.fc16 then log in and leave karma (feedback). nfs-utils-1.2.5-8.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report. |