Bug 30862
Summary: | Incorrect permissions on NFSv4 mounts, but OK after explicit stat | ||
---|---|---|---|
Product: | File System | Reporter: | rik.theys |
Component: | NFS | Assignee: | Trond Myklebust (trondmy) |
Status: | RESOLVED CODE_FIX | ||
Severity: | normal | CC: | alan, rik.theys |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.32 to 2.6.38-rc6 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: | Network dump |
Description
rik.theys
2011-03-10 11:04:53 UTC
Created attachment 50582 [details]
Network dump
I used one system running 2.6.38-rc6 as both the server and client. The client mounted the nfs4 share over the loopback interface.
Sequence of commands:
- start of tcpdump
- mount of filesystem
- ping to localhost so i can see it in the dump
- run my trigger script (returns error)
- ping to localhost
- run my trigger script again a few times (always returns error)
- ping to localhost
- stat the file
- ping to localhost
- run my trigger script, no error
My trigger script is a ksh script: #! /bin/ksh printf "hello world" >> /mnt/b/datafile I mounted the nfs4 filesystem under /mnt and b is a directory on the mount. The permissions on b are 755 root:root, The permissions on the datafile are 0600 user:user. Also verified it on Debian Etch r0 2.6.18 kernel. It has the same problem. Red Hat has debugged this problem and have posted a patch in the bugzilla entry: https://bugzilla.redhat.com/show_bug.cgi?id=683372 I recompiled the RHEL6 kernel with the patch applied and can confirm that it fixes this bug. Proposed patch on linux-nfs mailing list http://thread.gmane.org/gmane.linux.nfs/40010 |