Home
last modified time | relevance | path

Searched refs:aclobj (Results 1 – 25 of 36) sorted by relevance

12

/dports/mail/dovecot/dovecot-2.3.17/src/plugins/acl/
H A Dacl-api.c51 aclobj->backend->v.object_deinit(aclobj); in acl_object_deinit()
158 return aclobj->backend->v.last_changed(aclobj, last_changed_r); in acl_object_last_changed()
164 return aclobj->backend->v.object_update(aclobj, update); in acl_object_update()
169 return aclobj->backend->v.object_list_init(aclobj); in acl_object_list_init()
200 iter->aclobj = aclobj; in acl_default_object_list_init()
205 acl_cache_flush(aclobj->backend->cache, aclobj->name); in acl_default_object_list_init()
208 if (aclobj->backend->v.object_refresh_cache(aclobj) < 0) in acl_default_object_list_init()
742 acl_cache_update(aclobj->backend->cache, aclobj->name, &ru); in apply_owner_default_rights()
753 acl_cache_flush(aclobj->backend->cache, aclobj->name); in acl_object_rebuild_cache()
816 acl_cache_update(aclobj->backend->cache, aclobj->name, &ru); in acl_object_rebuild_cache()
[all …]
H A Dacl-backend-vfile.c156 aclobj->aclobj.backend = _backend; in acl_backend_vfile_object_init()
157 aclobj->aclobj.name = i_strdup(name); in acl_backend_vfile_object_init()
170 aclobj->global_path = in acl_backend_vfile_object_init()
178 return &aclobj->aclobj; in acl_backend_vfile_object_init()
307 i_free(aclobj->local_path); in acl_backend_vfile_object_deinit()
310 if (array_is_created(&aclobj->aclobj.rights)) in acl_backend_vfile_object_deinit()
311 array_free(&aclobj->aclobj.rights); in acl_backend_vfile_object_deinit()
312 pool_unref(&aclobj->aclobj.rights_pool); in acl_backend_vfile_object_deinit()
313 i_free(aclobj->aclobj.name); in acl_backend_vfile_object_deinit()
314 i_free(aclobj); in acl_backend_vfile_object_deinit()
[all …]
H A Dacl-backend-vfile-update.c26 struct acl_object *_aclobj = &aclobj->aclobj; in acl_backend_vfile_update_begin()
30 if (aclobj->local_path == NULL) { in acl_backend_vfile_update_begin()
32 aclobj->aclobj.name); in acl_backend_vfile_update_begin()
65 right = array_idx_modifiable(&aclobj->rights, idx); in vfile_object_modify_right()
74 array_delete(&aclobj->rights, idx, 1); in vfile_object_modify_right()
95 right.identifier = p_strdup(aclobj->rights_pool, in vfile_object_add_right()
104 array_insert(&aclobj->rights, idx, &right, 1); in vfile_object_add_right()
132 acl_backend_vfile_update_write(struct acl_object *aclobj, in acl_backend_vfile_update_write() argument
147 rights = array_get(&aclobj->rights, &count); in acl_backend_vfile_update_write()
197 struct acl_object_vfile *aclobj = in acl_backend_vfile_object_update() local
[all …]
H A Dacl-api-private.h30 void (*object_deinit)(struct acl_object *aclobj);
32 int (*object_refresh_cache)(struct acl_object *aclobj);
33 int (*object_update)(struct acl_object *aclobj,
35 int (*last_changed)(struct acl_object *aclobj, time_t *last_changed_r);
38 (*object_list_init)(struct acl_object *aclobj);
82 struct acl_object *aclobj; member
96 acl_default_object_list_init(struct acl_object *aclobj);
120 void acl_rights_sort(struct acl_object *aclobj);
131 void acl_object_rebuild_cache(struct acl_object *aclobj);
132 void acl_object_remove_all_access(struct acl_object *aclobj);
[all …]
H A Dacl-api.h140 void acl_object_deinit(struct acl_object **aclobj);
144 int acl_object_have_right(struct acl_object *aclobj, unsigned int right_idx);
146 int acl_object_get_my_rights(struct acl_object *aclobj, pool_t pool,
149 const char *const *acl_object_get_default_rights(struct acl_object *aclobj);
152 int acl_object_last_changed(struct acl_object *aclobj, time_t *last_changed_r);
155 int acl_object_update(struct acl_object *aclobj,
159 struct acl_object_list_iter *acl_object_list_init(struct acl_object *aclobj);
H A Dacl-mailbox.c31 return abox->aclobj; in acl_mailbox_get_aclobj()
49 ret = acl_object_have_right(abox->aclobj, in acl_mailbox_right_lookup()
92 if (abox->aclobj != NULL) in acl_mailbox_free()
93 acl_object_deinit(&abox->aclobj); in acl_mailbox_free()
115 (void)acl_object_update(abox->aclobj, &update); in acl_mailbox_copy_acls_from_parent()
160 acl_object_deinit(&abox->aclobj); in acl_mailbox_create()
567 ret = acl_object_have_right(abox->aclobj, in acl_mailbox_open_check_acl()
681 iter = acl_object_list_init(aclobj); in acl_mailbox_update_removed_id()
693 struct acl_object *aclobj; in acl_mailbox_update_acl() local
700 aclobj = acl_mailbox_get_aclobj(t->box); in acl_mailbox_update_acl()
[all …]
H A Dacl-backend-vfile.h26 struct acl_object aclobj; member
55 int acl_backend_vfile_object_update(struct acl_object *aclobj,
71 int acl_backend_vfile_object_get_mtime(struct acl_object *aclobj,
H A Dacl-attributes.c59 struct acl_object *aclobj = acl_mailbox_get_aclobj(box); in acl_attribute_get_acl() local
75 (void)acl_object_last_changed(aclobj, &value_r->last_change); in acl_attribute_get_acl()
85 iter = acl_object_list_init(aclobj); in acl_attribute_get_acl()
169 aiter->acl_iter = acl_object_list_init(abox->aclobj); in acl_attribute_iter_init()
H A Ddoveadm-acl.c79 struct acl_object *aclobj = acl_mailbox_get_aclobj(box); in cmd_acl_get_mailbox() local
87 iter = acl_object_list_init(aclobj); in cmd_acl_get_mailbox()
163 struct acl_object *aclobj; in cmd_acl_rights_run() local
170 aclobj = acl_mailbox_get_aclobj(box); in cmd_acl_rights_run()
171 if (acl_object_get_my_rights(aclobj, pool_datastack_create(), in cmd_acl_rights_run()
398 struct acl_object *aclobj = acl_mailbox_get_aclobj(box); in cmd_acl_debug_mailbox() local
425 if (acl_object_get_my_rights(aclobj, pool_datastack_create(), in cmd_acl_debug_mailbox()
H A Dacl-backend-vfile-acllist.c177 struct acl_object *aclobj; in acllist_append() local
186 aclobj = acl_object_init_from_name(&backend->backend, name); in acllist_append()
188 iter = acl_object_list_init(aclobj); in acllist_append()
195 if (acl_backend_vfile_object_get_mtime(aclobj, &acllist.mtime) < 0) in acllist_append()
205 acl_object_deinit(&aclobj); in acllist_append()
H A Dacl-backend.c185 struct acl_object *aclobj = acl_backend_get_default_object(backend); in acl_backend_get_default_rights() local
187 if (backend->v.object_refresh_cache(aclobj) < 0) in acl_backend_get_default_rights()
190 *mask_r = acl_cache_get_my_rights(backend->cache, aclobj->name); in acl_backend_get_default_rights()
H A Dacl-lookup-dict.c110 struct acl_object *aclobj; in acl_lookup_dict_rebuild_add_backend() local
125 aclobj = acl_object_init_from_name(backend, name); in acl_lookup_dict_rebuild_add_backend()
127 iter = acl_object_list_init(aclobj); in acl_lookup_dict_rebuild_add_backend()
142 acl_object_deinit(&aclobj); in acl_lookup_dict_rebuild_add_backend()
H A Dacl-mailbox-list.c64 struct acl_object *aclobj; in acl_mailbox_list_have_right() local
70 aclobj = !parent ? in acl_mailbox_list_have_right()
73 ret = acl_object_have_right(aclobj, idx_arr[acl_storage_right_idx]); in acl_mailbox_list_have_right()
76 ret2 = acl_object_have_right(aclobj, in acl_mailbox_list_have_right()
82 acl_object_deinit(&aclobj); in acl_mailbox_list_have_right()
H A Dacl-plugin.h47 struct acl_object *aclobj; member
/dports/mail/dovecot/dovecot-2.3.17/src/plugins/mail-crypt/
H A Dmail-crypt-acl-plugin.c34 mail_crypt_acl_has_user_read_right(struct acl_object *aclobj, in mail_crypt_acl_has_user_read_right() argument
42 iter = acl_object_list_init(aclobj); in mail_crypt_acl_has_user_read_right()
65 iter = acl_object_list_init(aclobj); in mail_crypt_acl_has_nonuser_read_right()
240 static int mail_crypt_acl_object_update(struct acl_object *aclobj, in mail_crypt_acl_object_update() argument
245 MAIL_CRYPT_ACL_LIST_CONTEXT(aclobj->backend->list); in mail_crypt_acl_object_update()
253 if (mlist->acl_vprev.object_update(aclobj, update) < 0) in mail_crypt_acl_object_update()
260 aclobj->name); in mail_crypt_acl_object_update()
280 ret = mail_crypt_acl_user_create(aclobj->backend->list->ns->user, in mail_crypt_acl_object_update()
288 aclobj->backend->list->ns->user->_service_user in mail_crypt_acl_object_update()
317 aclobj->backend->list->ns->user->_service_user in mail_crypt_acl_object_update()
[all …]
/dports/mail/dovecot/dovecot-2.3.17/src/plugins/imap-acl/
H A Dimap-acl-plugin.c215 struct acl_object *aclobj) in have_positive_owner_rights() argument
221 iter = acl_object_list_init(aclobj); in have_positive_owner_rights()
236 struct acl_object *aclobj, bool convert_owner, in imap_acl_write_aclobj() argument
252 iter = acl_object_list_init(aclobj); in imap_acl_write_aclobj()
264 aclobj, FALSE, in imap_acl_write_aclobj()
292 rights.rights = acl_object_get_default_rights(aclobj); in imap_acl_write_aclobj()
840 struct acl_object *aclobj, in imap_acl_update_ensure_keep_admins() argument
858 if (have_positive_owner_rights(backend, aclobj)) in imap_acl_update_ensure_keep_admins()
865 default_rights = acl_object_get_default_rights(aclobj); in imap_acl_update_ensure_keep_admins()
919 struct acl_object *aclobj; in imap_acl_cmd_setacl() local
[all …]
/dports/dns/bind-tools/bind-9.16.27/bin/plugins/
H A Dfilter-aaaa.c238 const cfg_obj_t *aclobj = NULL; in check_syntax() local
242 cfg_map_get(fmap, "filter-aaaa", &aclobj); in check_syntax()
243 if (aclobj == NULL) { in check_syntax()
247 CHECK(cfg_acl_fromconfig(aclobj, (const cfg_obj_t *)cfg, lctx, in check_syntax()
254 cfg_obj_log(aclobj, lctx, ISC_LOG_WARNING, in check_syntax()
260 cfg_obj_log(aclobj, lctx, ISC_LOG_WARNING, in check_syntax()
/dports/dns/bind916/bind-9.16.27/bin/plugins/
H A Dfilter-aaaa.c238 const cfg_obj_t *aclobj = NULL; in check_syntax() local
242 cfg_map_get(fmap, "filter-aaaa", &aclobj); in check_syntax()
243 if (aclobj == NULL) { in check_syntax()
247 CHECK(cfg_acl_fromconfig(aclobj, (const cfg_obj_t *)cfg, lctx, in check_syntax()
254 cfg_obj_log(aclobj, lctx, ISC_LOG_WARNING, in check_syntax()
260 cfg_obj_log(aclobj, lctx, ISC_LOG_WARNING, in check_syntax()
/dports/dns/samba-nsupdate/bind-9.16.5/bin/plugins/
H A Dfilter-aaaa.c242 const cfg_obj_t *aclobj = NULL; in check_syntax() local
246 cfg_map_get(fmap, "filter-aaaa", &aclobj); in check_syntax()
247 if (aclobj == NULL) { in check_syntax()
251 CHECK(cfg_acl_fromconfig(aclobj, (const cfg_obj_t *)cfg, lctx, in check_syntax()
258 cfg_obj_log(aclobj, lctx, ISC_LOG_WARNING, in check_syntax()
264 cfg_obj_log(aclobj, lctx, ISC_LOG_WARNING, in check_syntax()
/dports/dns/bind9-devel/bind9-e112afa15668bd3b1baed59df2d21e01b46da15e/bin/plugins/
H A Dfilter-a.c235 const cfg_obj_t *aclobj = NULL; in check_syntax() local
239 cfg_map_get(fmap, "filter-a", &aclobj); in check_syntax()
240 if (aclobj == NULL) { in check_syntax()
244 CHECK(cfg_acl_fromconfig(aclobj, (const cfg_obj_t *)cfg, lctx, in check_syntax()
251 cfg_obj_log(aclobj, lctx, ISC_LOG_WARNING, in check_syntax()
257 cfg_obj_log(aclobj, lctx, ISC_LOG_WARNING, in check_syntax()
H A Dfilter-aaaa.c236 const cfg_obj_t *aclobj = NULL; in check_syntax() local
240 cfg_map_get(fmap, "filter-aaaa", &aclobj); in check_syntax()
241 if (aclobj == NULL) { in check_syntax()
245 CHECK(cfg_acl_fromconfig(aclobj, (const cfg_obj_t *)cfg, lctx, in check_syntax()
252 cfg_obj_log(aclobj, lctx, ISC_LOG_WARNING, in check_syntax()
258 cfg_obj_log(aclobj, lctx, ISC_LOG_WARNING, in check_syntax()
/dports/dns/bind911/bind-9.11.37/lib/bind9/
H A Dcheck.c432 const cfg_obj_t *aclobj = NULL; in checkacl() local
438 cfg_map_get(options, aclname, &aclobj); in checkacl()
440 if (voptions != NULL && aclobj == NULL) in checkacl()
442 if (config != NULL && aclobj == NULL) { in checkacl()
448 if (aclobj == NULL) in checkacl()
754 aclobj = options = NULL; in check_recursionacls()
759 if (config != NULL && aclobj == NULL) { in check_recursionacls()
765 if (aclobj == NULL) in check_recursionacls()
807 aclobj = options = NULL; in check_filteraaaa()
812 if (config != NULL && aclobj == NULL) { in check_filteraaaa()
[all …]
/dports/dns/samba-nsupdate/bind-9.16.5/lib/bind9/
H A Dcheck.c443 const cfg_obj_t *aclobj = NULL; in checkacl() local
449 cfg_map_get(options, aclname, &aclobj); in checkacl()
451 if (voptions != NULL && aclobj == NULL) { in checkacl()
452 cfg_map_get(voptions, aclname, &aclobj); in checkacl()
454 if (config != NULL && aclobj == NULL) { in checkacl()
458 cfg_map_get(options, aclname, &aclobj); in checkacl()
461 if (aclobj == NULL) { in checkacl()
786 aclobj = options = NULL; in check_recursionacls()
790 cfg_map_get(voptions, acls[i], &aclobj); in check_recursionacls()
792 if (config != NULL && aclobj == NULL) { in check_recursionacls()
[all …]
/dports/dns/bind-tools/bind-9.16.27/lib/bind9/
H A Dcheck.c455 const cfg_obj_t *aclobj = NULL; in checkacl() local
461 cfg_map_get(options, aclname, &aclobj); in checkacl()
463 if (voptions != NULL && aclobj == NULL) { in checkacl()
464 cfg_map_get(voptions, aclname, &aclobj); in checkacl()
466 if (config != NULL && aclobj == NULL) { in checkacl()
470 cfg_map_get(options, aclname, &aclobj); in checkacl()
473 if (aclobj == NULL) { in checkacl()
798 aclobj = options = NULL; in check_recursionacls()
802 cfg_map_get(voptions, acls[i], &aclobj); in check_recursionacls()
804 if (config != NULL && aclobj == NULL) { in check_recursionacls()
[all …]
/dports/dns/bind916/bind-9.16.27/lib/bind9/
H A Dcheck.c455 const cfg_obj_t *aclobj = NULL; in checkacl() local
461 cfg_map_get(options, aclname, &aclobj); in checkacl()
463 if (voptions != NULL && aclobj == NULL) { in checkacl()
464 cfg_map_get(voptions, aclname, &aclobj); in checkacl()
466 if (config != NULL && aclobj == NULL) { in checkacl()
470 cfg_map_get(options, aclname, &aclobj); in checkacl()
473 if (aclobj == NULL) { in checkacl()
798 aclobj = options = NULL; in check_recursionacls()
802 cfg_map_get(voptions, acls[i], &aclobj); in check_recursionacls()
804 if (config != NULL && aclobj == NULL) { in check_recursionacls()
[all …]

12