A brief history of NFS server access restrictionsIn the beginning, NFS servers had no access restrictions. No, really. In the early versions of NFS, the kernel NFS code had no access checks;
if you had a valid filehandle, the kernel
was happy to talk to you, regardless of who you were. What NFS access
restrictions existed were all done during the NFS mount process; if you were not authorized to mount the particular thing
you were asking for, (And once you had the filehandle for the top of a filesystem, that was pretty much it, because it wasn't as if that filehandle could easily be changed.) This sparked a rush to put some sort of NFS access restrictions in
the kernel itself. However, Sun had made NFS export permissions very
flexible and full of user-level concepts like NIS netgroups; it was
clear that you couldn't just push At first people tried having As a result, all modern systems have moved to some sort of 'upcall'
mechanism; when the kernel gets a NFS request that it doesn't already
have permissions information for, it pokes Of course, this adds a new NFS mount failure mode. At least some kernels cache negative
permissions entries (this IP address is not allowed to access this
filesystem) so that they don't upcall to (We had one client that couldn't mount a crucial filesystem from a Solaris 8 NFS server for months. Fortunately it was a test system.) |
These are my WanderingThoughts GettingAround This is part of CSpace, and is written by ChrisSiebenmann. * * * Atom feeds are available; see the bottom of most pages. Categories: links, linux, programming, python, snark, solaris, spam, sysadmin, tech, unix, web |