HomeFreeBSD

vfs_vnops.c: Modify the O_NAMEDATTR check for Solaris compatibility

Description

vfs_vnops.c: Modify the O_NAMEDATTR check for Solaris compatibility

The Solaris semantics for their O_XATTR flag is to use it
for a file object in the file system's namespace to indicate
that a named attribute for the file object should be open'd.

To do this, the O_NAMEDATTR flag must be allowed with a
non-named attribute directory. This patch changes vfs_vnops_cred()
to allow this.

This patch fixes 2ec2ba7e232d so that Solaris compatible
semantics can be implemented by patched ZFS code.

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D49899
Fixes: 2ec2ba7e232d ("vfs: Add VFS/syscall support for Solaris style extended attributes")

Details

Provenance
rmacklemAuthored on Sun, Apr 20, 11:22 PM
Reviewer
kib
Differential Revision
D49899: vfs_vnops.c: Modify the O_NAMEDATTR check for Solaris compatibility
Parents
rGee95e4d02dbd: vfs_vnops.c: Fix the named attribute check for open
Branches
Unknown
Tags
Unknown