acl 54 source3/include/smb_acls.h struct smb_acl_entry acl[1]; acl 67 source3/lib/sysacls.c *entry_p = &acl_d->acl[acl_d->next++]; acl 149 source3/lib/sysacls.c struct smb_acl_entry *ap = &acl_d->acl[i]; acl 274 source3/lib/sysacls.c entry_d = &acl_d->acl[acl_d->count++]; acl 33 source3/modules/gpfs.c static int (*gpfs_getacl_fn)(char *pathname, int flags, void *acl); acl 34 source3/modules/gpfs.c static int (*gpfs_putacl_fn)(char *pathname, int flags, void *acl); acl 120 source3/modules/gpfs.c int smbd_gpfs_getacl(char *pathname, int flags, void *acl) acl 127 source3/modules/gpfs.c return gpfs_getacl_fn(pathname, flags, acl); acl 130 source3/modules/gpfs.c int smbd_gpfs_putacl(char *pathname, int flags, void *acl) acl 137 source3/modules/gpfs.c return gpfs_putacl_fn(pathname, flags, acl); acl 239 source3/modules/gpfs.c int smbd_gpfs_getacl(char *pathname, int flags, void *acl) acl 245 source3/modules/gpfs.c int smbd_gpfs_putacl(char *pathname, int flags, void *acl) acl 238 source3/modules/onefs_acl.c onefs_samba_acl_to_acl(SEC_ACL *samba_acl, struct ifs_security_acl **acl, acl 249 source3/modules/onefs_acl.c if ((!acl) || (!samba_acl)) acl 276 source3/modules/onefs_acl.c if (aclu_initialize_acl(acl, aces, num_aces)) acl 293 source3/modules/onefs_acl.c onefs_acl_to_samba_acl(struct ifs_security_acl *acl, SEC_ACL **samba_acl) acl 303 source3/modules/onefs_acl.c if (!acl) { acl 309 source3/modules/onefs_acl.c if (!acl->aces) acl 312 source3/modules/onefs_acl.c num_aces = acl->num_aces; acl 328 source3/modules/onefs_acl.c if (!onefs_identity_to_sid(&acl->aces[i].trustee, &sid)) acl 331 source3/modules/onefs_acl.c init_sec_ace(&samba_aces[i], &sid, acl->aces[i].type, acl 332 source3/modules/onefs_acl.c acl->aces[i].access_mask, acl->aces[i].flags); acl 335 source3/modules/onefs_acl.c if ((tmp_samba_acl = make_sec_acl(talloc_tos(), acl->revision, num_aces, acl 68 source3/modules/vfs_afsacl.c static bool init_afs_acl(struct afs_acl *acl) acl 70 source3/modules/vfs_afsacl.c ZERO_STRUCT(*acl); acl 71 source3/modules/vfs_afsacl.c acl->ctx = talloc_init("afs_acl"); acl 72 source3/modules/vfs_afsacl.c if (acl->ctx == NULL) { acl 79 source3/modules/vfs_afsacl.c static void free_afs_acl(struct afs_acl *acl) acl 81 source3/modules/vfs_afsacl.c if (acl->ctx != NULL) acl 82 source3/modules/vfs_afsacl.c talloc_destroy(acl->ctx); acl 83 source3/modules/vfs_afsacl.c acl->ctx = NULL; acl 84 source3/modules/vfs_afsacl.c acl->num_aces = 0; acl 85 source3/modules/vfs_afsacl.c acl->acelist = NULL; acl 190 source3/modules/vfs_afsacl.c static void add_afs_ace(struct afs_acl *acl, acl 196 source3/modules/vfs_afsacl.c for (ace = acl->acelist; ace != NULL; ace = ace->next) { acl 204 source3/modules/vfs_afsacl.c ace = new_afs_ace(acl->ctx, positive, name, rights); acl 206 source3/modules/vfs_afsacl.c ace->next = acl->acelist; acl 207 source3/modules/vfs_afsacl.c acl->acelist = ace; acl 209 source3/modules/vfs_afsacl.c acl->num_aces += 1; acl 230 source3/modules/vfs_afsacl.c static bool parse_afs_acl(struct afs_acl *acl, const char *acl_str) acl 285 source3/modules/vfs_afsacl.c add_afs_ace(acl, nplus>0, name, rights); acl 293 source3/modules/vfs_afsacl.c static bool unparse_afs_acl(struct afs_acl *acl, char *acl_str) acl 303 source3/modules/vfs_afsacl.c struct afs_ace *ace = acl->acelist; acl 319 source3/modules/vfs_afsacl.c ace = acl->acelist; acl 394 source3/modules/vfs_afsacl.c static void split_afs_acl(struct afs_acl *acl, acl 403 source3/modules/vfs_afsacl.c for (ace = acl->acelist; ace != NULL; ace = ace->next) { acl 826 source3/modules/vfs_afsacl.c static bool afs_get_afs_acl(char *filename, struct afs_acl *acl) acl 848 source3/modules/vfs_afsacl.c if (!init_afs_acl(acl)) acl 851 source3/modules/vfs_afsacl.c if (!parse_afs_acl(acl, space)) { acl 853 source3/modules/vfs_afsacl.c free_afs_acl(acl); acl 1003 source3/modules/vfs_afsacl.c struct afs_acl acl; acl 1010 source3/modules/vfs_afsacl.c if (!afs_get_afs_acl(fsp->fsp_name, &acl)) { acl 1014 source3/modules/vfs_afsacl.c sd_size = afs_fto_nt_acl(&acl, fsp, security_info, ppdesc); acl 1016 source3/modules/vfs_afsacl.c free_afs_acl(&acl); acl 1025 source3/modules/vfs_afsacl.c struct afs_acl acl; acl 1032 source3/modules/vfs_afsacl.c if (!afs_get_afs_acl(name, &acl)) { acl 1036 source3/modules/vfs_afsacl.c sd_size = afs_to_nt_acl(&acl, handle->conn, name, security_info, acl 1039 source3/modules/vfs_afsacl.c free_afs_acl(&acl); acl 22 source3/modules/vfs_aixacl.c extern SMB_ACL_T aixacl_to_smbacl( struct acl *file_acl); acl 23 source3/modules/vfs_aixacl.c extern struct acl *aixacl_smb_to_aixacl(SMB_ACL_TYPE_T acltype, SMB_ACL_T theacl); acl 29 source3/modules/vfs_aixacl.c struct acl *file_acl = (struct acl *)NULL; acl 44 source3/modules/vfs_aixacl.c file_acl = (struct acl *)SMB_MALLOC(BUFSIZ); acl 56 source3/modules/vfs_aixacl.c struct acl *new_acl = SMB_MALLOC(file_acl->acl_len + sizeof(struct acl)); acl 63 source3/modules/vfs_aixacl.c rc = statacl((char *)path_p,0,file_acl,file_acl->acl_len+sizeof(struct acl)); acl 86 source3/modules/vfs_aixacl.c struct acl *file_acl = (struct acl *)NULL; acl 96 source3/modules/vfs_aixacl.c file_acl = (struct acl *)SMB_MALLOC(BUFSIZ); acl 108 source3/modules/vfs_aixacl.c struct acl *new_acl = SMB_MALLOC(file_acl->acl_len + sizeof(struct acl)); acl 115 source3/modules/vfs_aixacl.c rc = fstatacl(fsp->fh->fd,0,file_acl,file_acl->acl_len + sizeof(struct acl)); acl 138 source3/modules/vfs_aixacl.c struct acl *file_acl = NULL; acl 158 source3/modules/vfs_aixacl.c struct acl *file_acl = NULL; acl 28 source3/modules/vfs_aixacl2.c extern SMB_ACL_T aixacl_to_smbacl( struct acl *file_acl); acl 29 source3/modules/vfs_aixacl2.c extern struct acl *aixacl_smb_to_aixacl(SMB_ACL_TYPE_T acltype, SMB_ACL_T theacl); acl 36 source3/modules/vfs_aixacl2.c static int32_t aixacl2_getlen(AIXJFS2_ACL_T *acl, acl_type_t *type) acl 41 source3/modules/vfs_aixacl2.c len = acl->jfs2_acl[0].aclLength; acl 45 source3/modules/vfs_aixacl2.c len = acl->aixc_acl[0].acl_len; acl 57 source3/modules/vfs_aixacl2.c AIXJFS2_ACL_T *acl; acl 65 source3/modules/vfs_aixacl2.c acl = (AIXJFS2_ACL_T *)TALLOC_SIZE(mem_ctx, len); acl 66 source3/modules/vfs_aixacl2.c if (acl == NULL) { acl 75 source3/modules/vfs_aixacl2.c ret = aclx_get((char *)fname, ctl_flag, type, acl, &len, &mode); acl 77 source3/modules/vfs_aixacl2.c len = aixacl2_getlen(acl, type) + sizeof(AIXJFS2_ACL_T); acl 80 source3/modules/vfs_aixacl2.c acl = (AIXJFS2_ACL_T *)TALLOC_SIZE(mem_ctx, len); acl 81 source3/modules/vfs_aixacl2.c if (acl == NULL) { acl 86 source3/modules/vfs_aixacl2.c ret = aclx_get((char *)fname, ctl_flag, type, acl, &len, &mode); acl 93 source3/modules/vfs_aixacl2.c return acl; acl 203 source3/modules/vfs_aixacl2.c AIXJFS2_ACL_T *acl; acl 207 source3/modules/vfs_aixacl2.c acl = aixjfs2_getacl_alloc(path, &type); acl 209 source3/modules/vfs_aixacl2.c if (acl == NULL) { acl 218 source3/modules/vfs_aixacl2.c pacl = &acl->aixc_acl[0]; acl 406 source3/modules/vfs_aixacl2.c struct acl *acl_aixc; acl 443 source3/modules/vfs_aixacl2.c struct acl *acl_aixc; acl 22 source3/modules/vfs_aixacl_util.c SMB_ACL_T aixacl_to_smbacl(struct acl *file_acl) acl 75 source3/modules/vfs_aixacl_util.c ace = &result->acl[result->count]; acl 151 source3/modules/vfs_aixacl_util.c ace = &result->acl[result->count]; acl 181 source3/modules/vfs_aixacl_util.c memcpy(&result->acl[result->count],ace,sizeof(struct smb_acl_entry)); acl 205 source3/modules/vfs_aixacl_util.c struct acl *aixacl_smb_to_aixacl(SMB_ACL_TYPE_T acltype, SMB_ACL_T theacl) acl 208 source3/modules/vfs_aixacl_util.c struct acl *file_acl = NULL; acl 209 source3/modules/vfs_aixacl_util.c struct acl *file_acl_temp = NULL; acl 223 source3/modules/vfs_aixacl_util.c file_acl = (struct acl *)SMB_MALLOC(BUFSIZ); acl 236 source3/modules/vfs_aixacl_util.c smb_entry = &(theacl->acl[i]); acl 263 source3/modules/vfs_aixacl_util.c file_acl_temp = (struct acl *)SMB_MALLOC(acl_length); acl 170 source3/modules/vfs_gpfs.c struct gpfs_acl *acl; acl 175 source3/modules/vfs_gpfs.c acl = (struct gpfs_acl *)TALLOC_SIZE(mem_ctx, len); acl 176 source3/modules/vfs_gpfs.c if (acl == NULL) { acl 181 source3/modules/vfs_gpfs.c acl->acl_len = len; acl 182 source3/modules/vfs_gpfs.c acl->acl_level = 0; acl 183 source3/modules/vfs_gpfs.c acl->acl_version = 0; acl 184 source3/modules/vfs_gpfs.c acl->acl_type = type; acl 186 source3/modules/vfs_gpfs.c ret = smbd_gpfs_getacl((char *)fname, GPFS_GETACL_STRUCT | GPFS_ACL_SAMBA, acl); acl 189 source3/modules/vfs_gpfs.c mem_ctx, acl->acl_len + sizeof(struct gpfs_acl)); acl 195 source3/modules/vfs_gpfs.c new_acl->acl_len = acl->acl_len; acl 196 source3/modules/vfs_gpfs.c new_acl->acl_level = acl->acl_level; acl 197 source3/modules/vfs_gpfs.c new_acl->acl_version = acl->acl_version; acl 198 source3/modules/vfs_gpfs.c new_acl->acl_type = acl->acl_type; acl 199 source3/modules/vfs_gpfs.c acl = new_acl; acl 201 source3/modules/vfs_gpfs.c ret = smbd_gpfs_getacl((char *)fname, GPFS_GETACL_STRUCT | GPFS_ACL_SAMBA, acl); acl 209 source3/modules/vfs_gpfs.c return acl; acl 439 source3/modules/vfs_gpfs.c struct gpfs_acl *acl; acl 442 source3/modules/vfs_gpfs.c acl = gpfs_getacl_alloc(fsp->fsp_name, 0); acl 443 source3/modules/vfs_gpfs.c if (acl == NULL) acl 446 source3/modules/vfs_gpfs.c if (acl->acl_version&GPFS_ACL_VERSION_NFS4) acl 477 source3/modules/vfs_gpfs.c struct smb_acl_entry *ace = &result->acl[i]; acl 626 source3/modules/vfs_gpfs.c const struct smb_acl_entry *ace = &pacl->acl[i]; acl 30 source3/modules/vfs_gpfs.h int smbd_gpfs_getacl(char *pathname, int flags, void *acl); acl 31 source3/modules/vfs_gpfs.h int smbd_gpfs_putacl(char *pathname, int flags, void *acl); acl 67 source3/modules/vfs_hpuxacl.c typedef struct acl HPUX_ACE_T; acl 68 source3/modules/vfs_hpuxacl.c typedef struct acl *HPUX_ACL_T; acl 124 source3/modules/vfs_hpuxacl.c static bool hpux_acl_sort(HPUX_ACL_T acl, int count); acl 298 source3/modules/vfs_hpuxacl.c ret = acl(CONST_DISCARD(char *, name), ACL_SET, count, hpux_acl); acl 381 source3/modules/vfs_hpuxacl.c ret = acl(CONST_DISCARD(char *, path), ACL_SET, count, hpux_acl); acl 426 source3/modules/vfs_hpuxacl.c const struct smb_acl_entry *smb_entry = &(smb_acl->acl[i]); acl 517 source3/modules/vfs_hpuxacl.c smb_entry = &result->acl[result->count]; acl 669 source3/modules/vfs_hpuxacl.c *count = acl(CONST_DISCARD(char *, name), ACL_CNT, 0, &dummy_ace); acl 679 source3/modules/vfs_hpuxacl.c *count = acl(CONST_DISCARD(char *, name), ACL_GET, *count, *hpux_acl); acl 900 source3/modules/vfs_hpuxacl.c static int hpux_get_needed_class_perm(struct acl *aclp) acl 27 source3/modules/vfs_posixacl.c static struct smb_acl_t *smb_acl_to_internal(acl_t acl); acl 29 source3/modules/vfs_posixacl.c static acl_t smb_acl_to_posix(const struct smb_acl_t *acl); acl 40 source3/modules/vfs_posixacl.c acl_t acl; acl 54 source3/modules/vfs_posixacl.c acl = acl_get_file(path_p, acl_type); acl 56 source3/modules/vfs_posixacl.c if (acl == NULL) { acl 60 source3/modules/vfs_posixacl.c result = smb_acl_to_internal(acl); acl 61 source3/modules/vfs_posixacl.c acl_free(acl); acl 69 source3/modules/vfs_posixacl.c acl_t acl = acl_get_fd(fsp->fh->fd); acl 71 source3/modules/vfs_posixacl.c if (acl == NULL) { acl 75 source3/modules/vfs_posixacl.c result = smb_acl_to_internal(acl); acl 76 source3/modules/vfs_posixacl.c acl_free(acl); acl 87 source3/modules/vfs_posixacl.c acl_t acl; acl 103 source3/modules/vfs_posixacl.c if ((acl = smb_acl_to_posix(theacl)) == NULL) { acl 106 source3/modules/vfs_posixacl.c res = acl_set_file(name, acl_type, acl); acl 110 source3/modules/vfs_posixacl.c acl_free(acl); acl 119 source3/modules/vfs_posixacl.c acl_t acl = smb_acl_to_posix(theacl); acl 120 source3/modules/vfs_posixacl.c if (acl == NULL) { acl 123 source3/modules/vfs_posixacl.c res = acl_set_fd(fsp->fh->fd, acl); acl 124 source3/modules/vfs_posixacl.c acl_free(acl); acl 213 source3/modules/vfs_posixacl.c static struct smb_acl_t *smb_acl_to_internal(acl_t acl) acl 222 source3/modules/vfs_posixacl.c while (acl_get_entry(acl, entry_id, &e) == 1) { acl 235 source3/modules/vfs_posixacl.c if (!smb_ace_to_internal(e, &result->acl[result->count])) { acl 271 source3/modules/vfs_posixacl.c static acl_t smb_acl_to_posix(const struct smb_acl_t *acl) acl 276 source3/modules/vfs_posixacl.c result = acl_init(acl->count); acl 282 source3/modules/vfs_posixacl.c for (i=0; i<acl->count; i++) { acl 283 source3/modules/vfs_posixacl.c const struct smb_acl_entry *entry = &acl->acl[i]; acl 208 source3/modules/vfs_solarisacl.c ret = acl(name, SETACL, count, solaris_acl); acl 316 source3/modules/vfs_solarisacl.c ret = acl(path, SETACL, count, solaris_acl); acl 358 source3/modules/vfs_solarisacl.c const struct smb_acl_entry *smb_entry = &(smb_acl->acl[i]); acl 449 source3/modules/vfs_solarisacl.c smb_entry = &result->acl[result->count]; acl 588 source3/modules/vfs_solarisacl.c *count = acl(name, GETACLCNT, 0, NULL); acl 598 source3/modules/vfs_solarisacl.c *count = acl(name, GETACL, *count, *solaris_acl); acl 24 source3/modules/vfs_tru64acl.c static struct smb_acl_t *tru64_acl_to_smb_acl(const struct acl *tru64_acl); acl 153 source3/modules/vfs_tru64acl.c static struct smb_acl_t *tru64_acl_to_smb_acl(const struct acl *tru64_acl) acl 166 source3/modules/vfs_tru64acl.c if (acl_first_entry((struct acl *)tru64_acl) != 0) { acl 170 source3/modules/vfs_tru64acl.c while ((entry = acl_get_entry((struct acl *)tru64_acl)) != NULL) { acl 180 source3/modules/vfs_tru64acl.c if (!tru64_ace_to_smb_ace(entry, &result->acl[result->count])) { acl 271 source3/modules/vfs_tru64acl.c const struct smb_acl_entry *smb_entry = &smb_acl->acl[i]; acl 47 source3/modules/vfs_zfsacl.c if((naces = acl(name, ACE_GETACLCNT, 0, NULL)) == -1) { acl 65 source3/modules/vfs_zfsacl.c if(acl(name, ACE_GETACL, naces, acebuf) < 0) { acl 148 source3/modules/vfs_zfsacl.c if(acl(fsp->fsp_name, ACE_SETACL, naces, acebuf)) { acl 498 source4/heimdal/kdc/krb5tgs.c const HDB_Ext_Constrained_delegation_acl *acl; acl 502 source4/heimdal/kdc/krb5tgs.c ret = hdb_entry_get_ConstrainedDelegACL(&client->entry, &acl); acl 508 source4/heimdal/kdc/krb5tgs.c if (acl) { acl 509 source4/heimdal/kdc/krb5tgs.c for (i = 0; i < acl->len; i++) { acl 510 source4/heimdal/kdc/krb5tgs.c if (krb5_principal_compare(context, server, &acl->val[i]) == TRUE) acl 1369 source4/heimdal/kdc/pkinit.c const HDB_Ext_PKINIT_acl *acl; acl 1410 source4/heimdal/kdc/pkinit.c ret = hdb_entry_get_pkinit_acl(&client->entry, &acl); acl 1411 source4/heimdal/kdc/pkinit.c if (ret == 0 && acl != NULL) { acl 1416 source4/heimdal/kdc/pkinit.c for (i = 0; i < acl->len; i++) { acl 1417 source4/heimdal/kdc/pkinit.c if (strcmp(*subject_name, acl->val[0].subject) != 0) acl 1421 source4/heimdal/kdc/pkinit.c if (acl->val[0].issuer) acl 1423 source4/heimdal/kdc/pkinit.c if (acl->val[0].anchor) acl 272 source4/libcli/security/sddl.c struct security_acl *acl; acl 277 source4/libcli/security/sddl.c acl = talloc_zero(sd, struct security_acl); acl 278 source4/libcli/security/sddl.c if (acl == NULL) return NULL; acl 279 source4/libcli/security/sddl.c acl->revision = SECURITY_ACL_REVISION_NT4; acl 283 source4/libcli/security/sddl.c return acl; acl 288 source4/libcli/security/sddl.c talloc_free(acl); acl 297 source4/libcli/security/sddl.c astr = talloc_strndup(acl, sddl+1, len); acl 299 source4/libcli/security/sddl.c talloc_free(acl); acl 302 source4/libcli/security/sddl.c acl->aces = talloc_realloc(acl, acl->aces, struct security_ace, acl 303 source4/libcli/security/sddl.c acl->num_aces+1); acl 304 source4/libcli/security/sddl.c if (acl->aces == NULL) { acl 305 source4/libcli/security/sddl.c talloc_free(acl); acl 308 source4/libcli/security/sddl.c if (!sddl_decode_ace(acl->aces, &acl->aces[acl->num_aces], acl 310 source4/libcli/security/sddl.c talloc_free(acl); acl 313 source4/libcli/security/sddl.c switch (acl->aces[acl->num_aces].type) { acl 318 source4/libcli/security/sddl.c acl->revision = SECURITY_ACL_REVISION_ADS; acl 325 source4/libcli/security/sddl.c acl->num_aces++; acl 329 source4/libcli/security/sddl.c return acl; acl 520 source4/libcli/security/sddl.c static char *sddl_encode_acl(TALLOC_CTX *mem_ctx, const struct security_acl *acl, acl 531 source4/libcli/security/sddl.c for (i=0;i<acl->num_aces;i++) { acl 532 source4/libcli/security/sddl.c char *ace = sddl_encode_ace(sddl, &acl->aces[i], domain_sid); acl 577 source4/libcli/security/sddl.c char *acl = sddl_encode_acl(tmp_ctx, sd->dacl, sd->type, domain_sid); acl 578 source4/libcli/security/sddl.c if (acl == NULL) goto failed; acl 579 source4/libcli/security/sddl.c sddl = talloc_asprintf_append_buffer(sddl, "D:%s", acl); acl 584 source4/libcli/security/sddl.c char *acl = sddl_encode_acl(tmp_ctx, sd->sacl, sd->type>>1, domain_sid); acl 585 source4/libcli/security/sddl.c if (acl == NULL) goto failed; acl 586 source4/libcli/security/sddl.c sddl = talloc_asprintf_append_buffer(sddl, "S:%s", acl); acl 139 source4/libcli/security/security_descriptor.c struct security_acl *acl = NULL; acl 142 source4/libcli/security/security_descriptor.c acl = sd->sacl; acl 144 source4/libcli/security/security_descriptor.c acl = sd->dacl; acl 147 source4/libcli/security/security_descriptor.c if (acl == NULL) { acl 148 source4/libcli/security/security_descriptor.c acl = talloc(sd, struct security_acl); acl 149 source4/libcli/security/security_descriptor.c if (acl == NULL) { acl 152 source4/libcli/security/security_descriptor.c acl->revision = SECURITY_ACL_REVISION_NT4; acl 153 source4/libcli/security/security_descriptor.c acl->size = 0; acl 154 source4/libcli/security/security_descriptor.c acl->num_aces = 0; acl 155 source4/libcli/security/security_descriptor.c acl->aces = NULL; acl 158 source4/libcli/security/security_descriptor.c acl->aces = talloc_realloc(acl, acl->aces, acl 159 source4/libcli/security/security_descriptor.c struct security_ace, acl->num_aces+1); acl 160 source4/libcli/security/security_descriptor.c if (acl->aces == NULL) { acl 164 source4/libcli/security/security_descriptor.c acl->aces[acl->num_aces] = *ace; acl 166 source4/libcli/security/security_descriptor.c switch (acl->aces[acl->num_aces].type) { acl 171 source4/libcli/security/security_descriptor.c acl->revision = SECURITY_ACL_REVISION_ADS; acl 177 source4/libcli/security/security_descriptor.c acl->num_aces++; acl 180 source4/libcli/security/security_descriptor.c sd->sacl = acl; acl 183 source4/libcli/security/security_descriptor.c sd->dacl = acl; acl 221 source4/libcli/security/security_descriptor.c struct security_acl *acl = NULL; acl 224 source4/libcli/security/security_descriptor.c acl = sd->sacl; acl 226 source4/libcli/security/security_descriptor.c acl = sd->dacl; acl 229 source4/libcli/security/security_descriptor.c if (acl == NULL) { acl 234 source4/libcli/security/security_descriptor.c for (i=0;i<acl->num_aces;i++) { acl 235 source4/libcli/security/security_descriptor.c if (dom_sid_equal(trustee, &acl->aces[i].trustee)) { acl 236 source4/libcli/security/security_descriptor.c memmove(&acl->aces[i], &acl->aces[i+1], acl 237 source4/libcli/security/security_descriptor.c sizeof(acl->aces[i]) * (acl->num_aces - (i+1))); acl 238 source4/libcli/security/security_descriptor.c acl->num_aces--; acl 239 source4/libcli/security/security_descriptor.c if (acl->num_aces == 0) { acl 240 source4/libcli/security/security_descriptor.c acl->aces = NULL; acl 250 source4/libcli/security/security_descriptor.c acl->revision = SECURITY_ACL_REVISION_NT4; acl 252 source4/libcli/security/security_descriptor.c for (i=0;i<acl->num_aces;i++) { acl 253 source4/libcli/security/security_descriptor.c switch (acl->aces[i].type) { acl 258 source4/libcli/security/security_descriptor.c acl->revision = SECURITY_ACL_REVISION_ADS; acl 126 source4/ntvfs/posix/pvfs_acl.c static void pvfs_translate_generic_bits(struct security_acl *acl) acl 130 source4/ntvfs/posix/pvfs_acl.c if (!acl) return; acl 132 source4/ntvfs/posix/pvfs_acl.c for (i=0;i<acl->num_aces;i++) { acl 133 source4/ntvfs/posix/pvfs_acl.c struct security_ace *ace = &acl->aces[i]; acl 510 source4/ntvfs/posix/pvfs_acl.c struct xattr_NTACL *acl; acl 524 source4/ntvfs/posix/pvfs_acl.c acl = talloc(req, struct xattr_NTACL); acl 525 source4/ntvfs/posix/pvfs_acl.c if (acl == NULL) { acl 535 source4/ntvfs/posix/pvfs_acl.c status = pvfs_acl_load(pvfs, name, -1, acl); acl 537 source4/ntvfs/posix/pvfs_acl.c talloc_free(acl); acl 544 source4/ntvfs/posix/pvfs_acl.c switch (acl->version) { acl 546 source4/ntvfs/posix/pvfs_acl.c sd = acl->info.sd; acl 561 source4/ntvfs/posix/pvfs_acl.c talloc_free(acl); acl 744 source4/ntvfs/posix/pvfs_acl.c struct xattr_NTACL *acl; acl 758 source4/ntvfs/posix/pvfs_acl.c acl = talloc(req, struct xattr_NTACL); acl 759 source4/ntvfs/posix/pvfs_acl.c if (acl == NULL) { acl 763 source4/ntvfs/posix/pvfs_acl.c status = pvfs_acl_load(pvfs, parent, -1, acl); acl 771 source4/ntvfs/posix/pvfs_acl.c switch (acl->version) { acl 773 source4/ntvfs/posix/pvfs_acl.c parent_sd = acl->info.sd; acl 834 source4/ntvfs/posix/pvfs_acl.c acl->info.sd = sd; acl 836 source4/ntvfs/posix/pvfs_acl.c status = pvfs_acl_save(pvfs, name, fd, acl); acl 39 source4/ntvfs/posix/pvfs_acl_nfs4.c struct nfs4acl *acl; acl 45 source4/ntvfs/posix/pvfs_acl_nfs4.c acl = talloc_zero(mem_ctx, struct nfs4acl); acl 46 source4/ntvfs/posix/pvfs_acl_nfs4.c NT_STATUS_HAVE_NO_MEMORY(acl); acl 50 source4/ntvfs/posix/pvfs_acl_nfs4.c acl, ndr_pull_nfs4acl); acl 52 source4/ntvfs/posix/pvfs_acl_nfs4.c talloc_free(acl); acl 61 source4/ntvfs/posix/pvfs_acl_nfs4.c sd->type |= acl->a_flags; acl 64 source4/ntvfs/posix/pvfs_acl_nfs4.c num_ids = acl->a_count +2; acl 82 source4/ntvfs/posix/pvfs_acl_nfs4.c for (i=0;i<acl->a_count;i++) { acl 83 source4/ntvfs/posix/pvfs_acl_nfs4.c struct nfs4ace *a = &acl->ace[i]; acl 106 source4/ntvfs/posix/pvfs_acl_nfs4.c for (i=0;i<acl->a_count;i++) { acl 107 source4/ntvfs/posix/pvfs_acl_nfs4.c struct nfs4ace *a = &acl->ace[i]; acl 127 source4/ntvfs/posix/pvfs_acl_nfs4.c struct nfs4acl acl; acl 136 source4/ntvfs/posix/pvfs_acl_nfs4.c acl.a_version = 0; acl 137 source4/ntvfs/posix/pvfs_acl_nfs4.c acl.a_flags = sd->type; acl 138 source4/ntvfs/posix/pvfs_acl_nfs4.c acl.a_count = sd->dacl?sd->dacl->num_aces:0; acl 139 source4/ntvfs/posix/pvfs_acl_nfs4.c acl.a_owner_mask = 0; acl 140 source4/ntvfs/posix/pvfs_acl_nfs4.c acl.a_group_mask = 0; acl 141 source4/ntvfs/posix/pvfs_acl_nfs4.c acl.a_other_mask = 0; acl 143 source4/ntvfs/posix/pvfs_acl_nfs4.c acl.ace = talloc_array(tmp_ctx, struct nfs4ace, acl.a_count); acl 144 source4/ntvfs/posix/pvfs_acl_nfs4.c if (!acl.ace) { acl 149 source4/ntvfs/posix/pvfs_acl_nfs4.c ids = talloc_array(tmp_ctx, struct id_mapping, acl.a_count); acl 155 source4/ntvfs/posix/pvfs_acl_nfs4.c for (i=0;i<acl.a_count;i++) { acl 166 source4/ntvfs/posix/pvfs_acl_nfs4.c ctx = wbc_sids_to_xids_send(pvfs->wbc_ctx,ids, acl.a_count, ids); acl 177 source4/ntvfs/posix/pvfs_acl_nfs4.c for (i=0;i<acl.a_count;i++) { acl 178 source4/ntvfs/posix/pvfs_acl_nfs4.c struct nfs4ace *a = &acl.ace[i]; acl 193 source4/ntvfs/posix/pvfs_acl_nfs4.c &acl, ndr_push_nfs4acl); acl 35 source4/ntvfs/posix/pvfs_acl_xattr.c struct xattr_NTACL *acl; acl 41 source4/ntvfs/posix/pvfs_acl_xattr.c acl = talloc_zero(mem_ctx, struct xattr_NTACL); acl 42 source4/ntvfs/posix/pvfs_acl_xattr.c NT_STATUS_HAVE_NO_MEMORY(acl); acl 46 source4/ntvfs/posix/pvfs_acl_xattr.c acl, acl 50 source4/ntvfs/posix/pvfs_acl_xattr.c talloc_free(acl); acl 54 source4/ntvfs/posix/pvfs_acl_xattr.c if (acl->version != 1) { acl 55 source4/ntvfs/posix/pvfs_acl_xattr.c talloc_free(acl); acl 59 source4/ntvfs/posix/pvfs_acl_xattr.c *sd = talloc_steal(mem_ctx, acl->info.sd); acl 72 source4/ntvfs/posix/pvfs_acl_xattr.c struct xattr_NTACL acl; acl 78 source4/ntvfs/posix/pvfs_acl_xattr.c acl.version = 1; acl 79 source4/ntvfs/posix/pvfs_acl_xattr.c acl.info.sd = sd; acl 86 source4/ntvfs/posix/pvfs_acl_xattr.c &acl, acl 352 source4/ntvfs/posix/pvfs_xattr.c struct xattr_NTACL *acl) acl 355 source4/ntvfs/posix/pvfs_xattr.c ZERO_STRUCTP(acl); acl 359 source4/ntvfs/posix/pvfs_xattr.c status = pvfs_xattr_ndr_load(pvfs, acl, name->full_name, fd, acl 361 source4/ntvfs/posix/pvfs_xattr.c acl, acl 370 source4/ntvfs/posix/pvfs_xattr.c struct xattr_NTACL *acl) acl 384 source4/ntvfs/posix/pvfs_xattr.c acl,