Lines Matching defs:acl
39 struct nfs4acl *acl;
45 acl = talloc_zero(mem_ctx, struct nfs4acl);
46 NT_STATUS_HAVE_NO_MEMORY(acl);
50 acl, ndr_pull_nfs4acl);
52 talloc_free(acl);
61 sd->type |= acl->a_flags;
63 /* the number of ids to map is the acl count plus uid and gid */
64 num_ids = acl->a_count +2;
82 for (i=0;i<acl->a_count;i++) {
83 struct nfs4ace *a = &acl->ace[i];
106 for (i=0;i<acl->a_count;i++) {
107 struct nfs4ace *a = &acl->ace[i];
120 save the acl for a file into system.nfs4acl
127 struct nfs4acl acl;
136 acl.a_version = 0;
137 acl.a_flags = sd->type;
138 acl.a_count = sd->dacl?sd->dacl->num_aces:0;
139 acl.a_owner_mask = 0;
140 acl.a_group_mask = 0;
141 acl.a_other_mask = 0;
143 acl.ace = talloc_array(tmp_ctx, struct nfs4ace, acl.a_count);
144 if (!acl.ace) {
149 ids = talloc_array(tmp_ctx, struct id_mapping, acl.a_count);
155 for (i=0;i<acl.a_count;i++) {
166 ctx = wbc_sids_to_xids_send(pvfs->wbc_ctx,ids, acl.a_count, ids);
177 for (i=0;i<acl.a_count;i++) {
178 struct nfs4ace *a = &acl.ace[i];
193 &acl, ndr_push_nfs4acl);
202 initialise pvfs acl NFS4 backend