the second part is actually a hack to help nfs and fuseThe nameidata _IS_ the vfs structure for storing path context
to get the 'required' information until there is a proper
interface (at the vfs not inode level) to pass relevant
information (probably dentry/vfsmount/flags)
information. You seem to be suggesting we need yet another one. Why?
Vetoed!Secondly, an intent is _not_ a permissions mask by any stretch of thesee above
imagination.
IOW: at the very least make that intent flag a separate parameter.IMHO it would be good to remove them completely form the
current permission() checks.
Redundant RPC calls have performance costs to the client, the server and
the network. That intent information is there in order to allow the
filesystem to figure out whether or not it needs to do the permissions
check, or if that check is already being done by other operations.
Removing the intents are therefore not an option.