Lines Matching defs:pace
301 struct posix_acl_entry *pace)
305 pace->e_tag = ACL_USER_OBJ;
306 pace->e_perm = state->owner.allow;
308 pace++;
309 pace->e_tag = ACL_USER;
310 pace->e_uid = state->users->aces[i].uid;
311 pace->e_perm = state->users->aces[i].perms.allow;
314 pace++;
315 pace->e_tag = ACL_GROUP_OBJ;
316 pace->e_perm = state->group.allow;
319 pace++;
320 pace->e_tag = ACL_GROUP;
321 pace->e_gid = state->groups->aces[i].gid;
322 pace->e_perm = state->groups->aces[i].perms.allow;
326 pace++;
327 pace->e_tag = ACL_MASK;
328 pace->e_perm = state->mask.allow;
331 pace++;
332 pace->e_tag = ACL_OTHER;
333 pace->e_perm = state->other.allow;
586 struct posix_acl_entry *pace;
594 pace = fattr->cf_acls->a_entries;
595 for (i = 0; i < fattr->cf_acls->a_count; i++, pace++) {
602 if (pace->e_tag == ACL_USER) {
606 uid = posix_acl_uid_translate(idmap, pace);
610 } else if (pace->e_tag == ACL_GROUP) {
613 gid = posix_acl_gid_translate(idmap, pace);
615 } else if (pace->e_tag == ACL_OTHER && !nt_aces_num) {
630 if (S_ISDIR(fattr->cf_mode) && pace->e_tag == ACL_OTHER)
635 pace->e_perm, 0777);
637 if (pace->e_tag == ACL_USER)
642 (pace->e_tag == ACL_USER || pace->e_tag == ACL_GROUP)) {
645 0x03, pace->e_perm, 0777);
647 if (pace->e_tag == ACL_USER)
663 pace = fattr->cf_dacls->a_entries;
664 for (i = 0; i < fattr->cf_dacls->a_count; i++, pace++) {
669 if (pace->e_tag == ACL_USER) {
672 uid = posix_acl_uid_translate(idmap, pace);
674 } else if (pace->e_tag == ACL_GROUP) {
677 gid = posix_acl_gid_translate(idmap, pace);
686 pace->e_perm, 0777);
688 if (pace->e_tag == ACL_USER)
738 struct smb_ace *pace, *pndace;
744 pace = pndace = (struct smb_ace *)((char *)pndacl + sizeof(struct smb_acl));
758 ace_size = fill_ace_for_sid(pace, sid, ACCESS_ALLOWED, 0,
760 pace->sid.sub_auth[pace->sid.num_subauth++] = cpu_to_le32(uid);
761 pace->size = cpu_to_le16(ace_size + 4);
762 size += le16_to_cpu(pace->size);
763 pace = (struct smb_ace *)((char *)pndace + size);
766 ace_size = fill_ace_for_sid(pace, &sid_unix_groups,
768 pace->sid.sub_auth[pace->sid.num_subauth++] =
770 pace->size = cpu_to_le16(ace_size + 4);
771 size += le16_to_cpu(pace->size);
772 pace = (struct smb_ace *)((char *)pndace + size);
776 pace = (struct smb_ace *)((char *)pndace + size);
779 size += fill_ace_for_sid(pace, &creator_owner, ACCESS_ALLOWED,
781 pace = (struct smb_ace *)((char *)pndace + size);
784 size += fill_ace_for_sid(pace, &creator_group, ACCESS_ALLOWED,
786 pace = (struct smb_ace *)((char *)pndace + size);
791 size += fill_ace_for_sid(pace, &sid_everyone, ACCESS_ALLOWED, 0,
1180 struct smb_ace *pace;
1186 pace = (struct smb_ace *)((char *)pdacl + sizeof(struct smb_acl));
1187 memcpy(pace, aces_base, nt_size);