691{
699 BOOL sid_default, gsid_default;
700
703 dprintf(
ACLLVL,
"handle_setacl: OWNER_SECURITY_INFORMATION\n");
707 eprintf(
"GetSecurityDescriptorOwner failed with %d\n",
status);
709 }
714 else {
717 }
718 }
721 dprintf(
ACLLVL,
"handle_setacl: GROUP_SECURITY_INFORMATION\n");
725 eprintf(
"GetSecurityDescriptorOwner failed with %d\n",
status);
727 }
733 else {
736 }
737 }
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);
748 }
752 eprintf(
"GetSecurityDescriptorOwner failed with %d\n",
status);
754 }
758 eprintf(
"GetSecurityDescriptorOwner failed with %d\n",
status);
760 }
765 else {
766 info.acl = &nfs4_acl;
770 }
771 }
772
773
776
780 dprintf(
ACLLVL,
"handle_setacl: nfs41_setattr() failed with error %s.\n",
783 }
789}
static int map_dacl_2_nfs4acl(PACL acl, PSID sid, PSID gsid, nfsacl41 *nfs4_acl, int file_type, char *domain)
char localdomain_name[NFS41_HOSTNAME_LEN]
static int map_nfs4ace_who(PSID sid, PSID owner_sid, PSID group_sid, char *who_out, char *domain)
int nfs_to_windows_error(int status, int default_error)
const char * nfs_error_string(int status)
int nfs41_delegation_return(IN nfs41_session *session, IN nfs41_path_fh *file, IN enum open_delegation_type4 access, IN bool_t truncate)
void nfs41_open_stateid_arg(IN nfs41_open_state *state, OUT struct __stateid_arg *arg)
int nfs41_setattr(IN nfs41_session *session, IN nfs41_path_fh *file, IN stateid_arg *stateid, IN nfs41_file_info *info)
BOOL WINAPI GetSecurityDescriptorGroup(PSECURITY_DESCRIPTOR pSecurityDescriptor, PSID *pGroup, LPBOOL lpbGroupDefaulted)
BOOL WINAPI GetSecurityDescriptorDacl(PSECURITY_DESCRIPTOR pSecurityDescriptor, LPBOOL lpbDaclPresent, PACL *pDacl, LPBOOL lpbDaclDefaulted)
BOOL WINAPI GetSecurityDescriptorOwner(PSECURITY_DESCRIPTOR pSecurityDescriptor, PSID *pOwner, LPBOOL lpbOwnerDefaulted)