#include "librpc/gen_ndr/ndr_xattr.h"
#include "param/param.h"
#include "ntvfs/posix/posix_eadb_proto.h"
+#include "ntvfs/posix/xattr_util.h"
/*
pull a xattr as a blob
struct xattr_NTACL *acl)
{
NTSTATUS status;
+ const char *xattr_name = xattr_ntacl_name(pvfs->ntvfs->ctx->lp_ctx);
ZERO_STRUCTP(acl);
if (!(pvfs->flags & PVFS_FLAG_XATTR_ENABLE)) {
return NT_STATUS_NOT_FOUND;
}
status = pvfs_xattr_ndr_load(pvfs, acl, name->full_name, fd,
- XATTR_NTACL_NAME,
+ xattr_name,
acl,
(void *) ndr_pull_xattr_NTACL);
return status;
{
NTSTATUS status;
void *privs;
+ const char *xattr_name = xattr_ntacl_name(pvfs->ntvfs->ctx->lp_ctx);
if (!(pvfs->flags & PVFS_FLAG_XATTR_ENABLE)) {
return NT_STATUS_OK;
}
- /* this xattr is in the "system" namespace, so we need
+ /* this xattr is usually in the "system" namespace, so we need
admin privileges to set it */
privs = root_privileges();
status = pvfs_xattr_ndr_save(pvfs, name->full_name, fd,
- XATTR_NTACL_NAME,
+ xattr_name,
acl,
(void *) ndr_push_xattr_NTACL);
talloc_free(privs);