summaryrefslogtreecommitdiffstats
path: root/utils/exportfs
diff options
context:
space:
mode:
authorScott Mayhew <smayhew@redhat.com>2015-04-02 11:15:15 -0400
committerSteve Dickson <steved@redhat.com>2015-04-02 11:57:00 -0400
commit4a1ad4aa3028d26d830d9a9003ff9e3337b0e0d5 (patch)
tree25f54cdb9680b1c76c9f6ed3a385fe5b74bc2c58 /utils/exportfs
parent5cbb78bf4bd871168ada54b0fd4b42b26c959f3e (diff)
downloadnfs-utils-4a1ad4aa3028d26d830d9a9003ff9e3337b0e0d5.tar.gz
nfs-utils-4a1ad4aa3028d26d830d9a9003ff9e3337b0e0d5.tar.xz
nfs-utils-4a1ad4aa3028d26d830d9a9003ff9e3337b0e0d5.zip
mountd: Enable all auth flavors on pseudofs exports
With the current mountd code it's possible to craft exports in such a manner that clients will be unable to mount exports that they *should* be able to mount. Consider the following example: /foo *(rw,insecure,no_root_squash,sec=krb5p) /bar client.example.com(rw,insecure,no_root_squash) Initially, client.example.com will be able to mount the /foo export using sec=krb5p, but attempts to mount /bar using sec=sys will return EPERM. Once the nfsd.export cache entry expires, client.example.com will then be able to mount /bar using sec=sys but attempts to mount /foo using sec=krb5p will return EPERM. The reason this happens is because the initial nfsd.export cache entry is actually pre-populated by nfsd_fh(), which is the handler for the nfsd.fh cache, while later cache requests (once the initial entry expires) are handled by nfsd_export(). These functions have slightly different logic in how they select a v4root export from the cache -- nfsd_fh() takes last matching v4root export it finds, while nfsd_export() (actually lookup_export()) takes the first. Either way it's wrong because the client should be able to mount both exports. Both rfc3503bis and rfc5661 say: A common and convenient practice, unless strong security requirements dictate otherwise, is to make the entire pseudo file system accessible by all of the valid security mechanisms. ...so lets do that. Acked-by: J. Bruce Fields <bfields@fieldses.org> Signed-off-by: Scott Mayhew <smayhew@redhat.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'utils/exportfs')
0 files changed, 0 insertions, 0 deletions