699 BOOL sid_default, gsid_default;
703 dprintf(
ACLLVL,
"handle_setacl: OWNER_SECURITY_INFORMATION\n");
707 eprintf(
"GetSecurityDescriptorOwner failed with %d\n",
status);
721 dprintf(
ACLLVL,
"handle_setacl: GROUP_SECURITY_INFORMATION\n");
725 eprintf(
"GetSecurityDescriptorOwner failed with %d\n",
status);
739 BOOL dacl_present, dacl_default;
741 dprintf(
ACLLVL,
"handle_setacl: DACL_SECURITY_INFORMATION\n");
743 &acl, &dacl_default);
746 eprintf(
"GetSecurityDescriptorDacl failed with %d\n",
status);
752 eprintf(
"GetSecurityDescriptorOwner failed with %d\n",
status);
758 eprintf(
"GetSecurityDescriptorOwner failed with %d\n",
status);
766 info.acl = &nfs4_acl;
780 dprintf(
ACLLVL,
"handle_setacl: nfs41_setattr() failed with error %s.\n",
int nfs_to_windows_error(int status, int default_error)
int nfs41_setattr(IN nfs41_session *session, IN nfs41_path_fh *file, IN stateid_arg *stateid, IN nfs41_file_info *info)
BOOL WINAPI GetSecurityDescriptorDacl(PSECURITY_DESCRIPTOR pSecurityDescriptor, LPBOOL lpbDaclPresent, PACL *pDacl, LPBOOL lpbDaclDefaulted)
static int map_dacl_2_nfs4acl(PACL acl, PSID sid, PSID gsid, nfsacl41 *nfs4_acl, int file_type, char *domain)
static int map_nfs4ace_who(PSID sid, PSID owner_sid, PSID group_sid, char *who_out, char *domain)
DWORD WINAPI GetLastError(VOID)
void eprintf(LPCSTR format,...)
#define GROUP_SECURITY_INFORMATION
BOOL WINAPI GetSecurityDescriptorGroup(PSECURITY_DESCRIPTOR pSecurityDescriptor, PSID *pGroup, LPBOOL lpbGroupDefaulted)
BOOL WINAPI GetSecurityDescriptorOwner(PSECURITY_DESCRIPTOR pSecurityDescriptor, PSID *pOwner, LPBOOL lpbOwnerDefaulted)
#define NFS4_OPAQUE_LIMIT
void nfs41_open_stateid_arg(IN nfs41_open_state *state, OUT struct __stateid_arg *arg)
int nfs41_delegation_return(IN nfs41_session *session, IN nfs41_path_fh *file, IN enum open_delegation_type4 access, IN bool_t truncate)
const char * nfs_error_string(int status)
#define OWNER_SECURITY_INFORMATION
nfs41_updowncall_list upcall
#define ERROR_NOT_SUPPORTED
static SERVICE_STATUS status
#define DACL_SECURITY_INFORMATION
char localdomain_name[NFS41_HOSTNAME_LEN]