librpc/idl: rename NFS4 ACL xattr name
authorRalph Boehme <slow@samba.org>
Thu, 2 Nov 2017 11:17:48 +0000 (12:17 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 7 Nov 2017 23:20:08 +0000 (00:20 +0100)
The "system" xattr namespace is reserved for the kernel. Any attempt to
use xattrs in that namesspace will fail with EOPNOTSUPP, regardless of
priveleges. In autobuild we're using the xattr_tdb VFS module, so it
works there.

Using the "security" namespace instead makes this module generally
usable with Linux filesystem xattrs as storage backend.

Additionally prefix the xattr name with "_ndr". This is in preperation
of later commits that add a ACL blob marshalling format based on XDR. To
avoid xattr name collision, both format will use distinct xattr names by
default.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
librpc/idl/nfs4acl.idl

index 3d6894a604c3933d5c8c1cdd37cb1af4b95a3e5f..79e742c90e7d46f29cef60b5012899e60baabf64 100644 (file)
@@ -13,7 +13,7 @@ import "misc.idl", "security.idl";
 ]
 interface nfs4acl_interface
 {
-       const char *NFS4ACL_NDR_XATTR_NAME = "system.nfs4acl";
+       const char *NFS4ACL_NDR_XATTR_NAME = "security.nfs4acl_ndr";
 
        const char *NFS4ACL_XATTR_OWNER_WHO      = "OWNER@";
        const char *NFS4ACL_XATTR_GROUP_WHO      = "GROUP@";