Open with O_CREAT flag set fails to open existing files on non writable directories over NFS4 in Red Hat Enterprise Linux

Solution Unverified - Updated -

Issue

  • An open call on an NFS4 server for an existing file in a directory made with the O_CREAT flag will be incorrectly rejected if the process does not have write permissions for the containing directory. Since the file already exists, the NFS4 server should simply open the file instead and not check for create permissions on the directory.

Environment

  • NFS4 Server
  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.