Home
last modified time | relevance | path

Searched refs:dconfig (Results 1 – 25 of 49) sorted by relevance

12

/external/selinux/libsemanage/src/
Ddatabase.c9 static int assert_init(semanage_handle_t * handle, dbase_config_t * dconfig) in assert_init() argument
12 if (dconfig->dtable == NULL) { in assert_init()
24 static int enter_ro(semanage_handle_t * handle, dbase_config_t * dconfig) in enter_ro() argument
27 if (assert_init(handle, dconfig) < 0) in enter_ro()
39 if (dconfig->dtable->cache(handle, dconfig->dbase) < 0) in enter_ro()
61 static int enter_rw(semanage_handle_t * handle, dbase_config_t * dconfig) in enter_rw() argument
64 if (assert_init(handle, dconfig) < 0) in enter_rw()
72 if (dconfig->dtable->cache(handle, dconfig->dbase) < 0) in enter_rw()
83 dbase_config_t * dconfig, in dbase_modify() argument
87 if (enter_rw(handle, dconfig) < 0) in dbase_modify()
[all …]
Dbooleans_local.c18 dbase_config_t *dconfig = semanage_bool_dbase_local(handle); in semanage_bool_modify_local() local
19 return dbase_modify(handle, dconfig, key, data); in semanage_bool_modify_local()
26 dbase_config_t *dconfig = semanage_bool_dbase_local(handle); in semanage_bool_del_local() local
27 return dbase_del(handle, dconfig, key); in semanage_bool_del_local()
35 dbase_config_t *dconfig = semanage_bool_dbase_local(handle); in semanage_bool_query_local() local
36 return dbase_query(handle, dconfig, key, response); in semanage_bool_query_local()
43 dbase_config_t *dconfig = semanage_bool_dbase_local(handle); in semanage_bool_exists_local() local
44 return dbase_exists(handle, dconfig, key, response); in semanage_bool_exists_local()
51 dbase_config_t *dconfig = semanage_bool_dbase_local(handle); in semanage_bool_count_local() local
52 return dbase_count(handle, dconfig, response); in semanage_bool_count_local()
[all …]
Dinterfaces_local.c18 dbase_config_t *dconfig = semanage_iface_dbase_local(handle); in semanage_iface_modify_local() local
19 return dbase_modify(handle, dconfig, key, data); in semanage_iface_modify_local()
26 dbase_config_t *dconfig = semanage_iface_dbase_local(handle); in semanage_iface_del_local() local
27 return dbase_del(handle, dconfig, key); in semanage_iface_del_local()
35 dbase_config_t *dconfig = semanage_iface_dbase_local(handle); in semanage_iface_query_local() local
36 return dbase_query(handle, dconfig, key, response); in semanage_iface_query_local()
43 dbase_config_t *dconfig = semanage_iface_dbase_local(handle); in semanage_iface_exists_local() local
44 return dbase_exists(handle, dconfig, key, response); in semanage_iface_exists_local()
51 dbase_config_t *dconfig = semanage_iface_dbase_local(handle); in semanage_iface_count_local() local
52 return dbase_count(handle, dconfig, response); in semanage_iface_count_local()
[all …]
Dnodes_local.c18 dbase_config_t *dconfig = semanage_node_dbase_local(handle); in semanage_node_modify_local() local
19 return dbase_modify(handle, dconfig, key, data); in semanage_node_modify_local()
26 dbase_config_t *dconfig = semanage_node_dbase_local(handle); in semanage_node_del_local() local
27 return dbase_del(handle, dconfig, key); in semanage_node_del_local()
35 dbase_config_t *dconfig = semanage_node_dbase_local(handle); in semanage_node_query_local() local
36 return dbase_query(handle, dconfig, key, response); in semanage_node_query_local()
43 dbase_config_t *dconfig = semanage_node_dbase_local(handle); in semanage_node_exists_local() local
44 return dbase_exists(handle, dconfig, key, response); in semanage_node_exists_local()
51 dbase_config_t *dconfig = semanage_node_dbase_local(handle); in semanage_node_count_local() local
52 return dbase_count(handle, dconfig, response); in semanage_node_count_local()
[all …]
Dfcontexts_policy.c18 dbase_config_t *dconfig = semanage_fcontext_dbase_policy(handle); in semanage_fcontext_query() local
19 return dbase_query(handle, dconfig, key, response); in semanage_fcontext_query()
26 dbase_config_t *dconfig = semanage_fcontext_dbase_policy(handle); in semanage_fcontext_exists() local
27 return dbase_exists(handle, dconfig, key, response); in semanage_fcontext_exists()
33 dbase_config_t *dconfig = semanage_fcontext_dbase_policy(handle); in semanage_fcontext_count() local
34 return dbase_count(handle, dconfig, response); in semanage_fcontext_count()
43 dbase_config_t *dconfig = semanage_fcontext_dbase_policy(handle); in semanage_fcontext_iterate() local
44 return dbase_iterate(handle, dconfig, handler, handler_arg); in semanage_fcontext_iterate()
51 dbase_config_t *dconfig = semanage_fcontext_dbase_policy(handle); in semanage_fcontext_list() local
52 return dbase_list(handle, dconfig, records, count); in semanage_fcontext_list()
[all …]
Dbooleans_active.c18 dbase_config_t *dconfig = semanage_bool_dbase_active(handle); in semanage_bool_set_active() local
19 return dbase_set(handle, dconfig, key, data); in semanage_bool_set_active()
27 dbase_config_t *dconfig = semanage_bool_dbase_active(handle); in semanage_bool_query_active() local
28 return dbase_query(handle, dconfig, key, response); in semanage_bool_query_active()
35 dbase_config_t *dconfig = semanage_bool_dbase_active(handle); in semanage_bool_exists_active() local
36 return dbase_exists(handle, dconfig, key, response); in semanage_bool_exists_active()
43 dbase_config_t *dconfig = semanage_bool_dbase_active(handle); in semanage_bool_count_active() local
44 return dbase_count(handle, dconfig, response); in semanage_bool_count_active()
52 dbase_config_t *dconfig = semanage_bool_dbase_active(handle); in semanage_bool_iterate_active() local
53 return dbase_iterate(handle, dconfig, handler, handler_arg); in semanage_bool_iterate_active()
[all …]
Dusers_local.c23 dbase_config_t *dconfig = semanage_user_dbase_local(handle); in semanage_user_modify_local() local
24 return dbase_modify(handle, dconfig, key, data); in semanage_user_modify_local()
65 dbase_config_t *dconfig = semanage_user_dbase_local(handle); in semanage_user_del_local() local
66 return dbase_del(handle, dconfig, key); in semanage_user_del_local()
74 dbase_config_t *dconfig = semanage_user_dbase_local(handle); in semanage_user_query_local() local
75 return dbase_query(handle, dconfig, key, response); in semanage_user_query_local()
82 dbase_config_t *dconfig = semanage_user_dbase_local(handle); in semanage_user_exists_local() local
83 return dbase_exists(handle, dconfig, key, response); in semanage_user_exists_local()
90 dbase_config_t *dconfig = semanage_user_dbase_local(handle); in semanage_user_count_local() local
91 return dbase_count(handle, dconfig, response); in semanage_user_count_local()
[all …]
Dfcontexts_local.c23 dbase_config_t *dconfig = semanage_fcontext_dbase_local(handle); in semanage_fcontext_modify_local() local
24 return dbase_modify(handle, dconfig, key, data); in semanage_fcontext_modify_local()
31 dbase_config_t *dconfig = semanage_fcontext_dbase_local(handle); in semanage_fcontext_del_local() local
32 return dbase_del(handle, dconfig, key); in semanage_fcontext_del_local()
40 dbase_config_t *dconfig = semanage_fcontext_dbase_local(handle); in semanage_fcontext_query_local() local
41 return dbase_query(handle, dconfig, key, response); in semanage_fcontext_query_local()
49 dbase_config_t *dconfig = semanage_fcontext_dbase_local(handle); in semanage_fcontext_exists_local() local
50 return dbase_exists(handle, dconfig, key, response); in semanage_fcontext_exists_local()
57 dbase_config_t *dconfig = semanage_fcontext_dbase_local(handle); in semanage_fcontext_count_local() local
58 return dbase_count(handle, dconfig, response); in semanage_fcontext_count_local()
[all …]
Dports_local.c20 dbase_config_t *dconfig = semanage_port_dbase_local(handle); in semanage_port_modify_local() local
21 return dbase_modify(handle, dconfig, key, data); in semanage_port_modify_local()
28 dbase_config_t *dconfig = semanage_port_dbase_local(handle); in semanage_port_del_local() local
29 return dbase_del(handle, dconfig, key); in semanage_port_del_local()
37 dbase_config_t *dconfig = semanage_port_dbase_local(handle); in semanage_port_query_local() local
38 return dbase_query(handle, dconfig, key, response); in semanage_port_query_local()
45 dbase_config_t *dconfig = semanage_port_dbase_local(handle); in semanage_port_exists_local() local
46 return dbase_exists(handle, dconfig, key, response); in semanage_port_exists_local()
53 dbase_config_t *dconfig = semanage_port_dbase_local(handle); in semanage_port_count_local() local
54 return dbase_count(handle, dconfig, response); in semanage_port_count_local()
[all …]
Dibendports_local.c21 dbase_config_t *dconfig = semanage_ibendport_dbase_local(handle); in semanage_ibendport_modify_local() local
23 return dbase_modify(handle, dconfig, key, data); in semanage_ibendport_modify_local()
29 dbase_config_t *dconfig = semanage_ibendport_dbase_local(handle); in semanage_ibendport_del_local() local
31 return dbase_del(handle, dconfig, key); in semanage_ibendport_del_local()
38 dbase_config_t *dconfig = semanage_ibendport_dbase_local(handle); in semanage_ibendport_query_local() local
40 return dbase_query(handle, dconfig, key, response); in semanage_ibendport_query_local()
47 dbase_config_t *dconfig = semanage_ibendport_dbase_local(handle); in semanage_ibendport_exists_local() local
49 return dbase_exists(handle, dconfig, key, response); in semanage_ibendport_exists_local()
55 dbase_config_t *dconfig = semanage_ibendport_dbase_local(handle); in semanage_ibendport_count_local() local
57 return dbase_count(handle, dconfig, response); in semanage_ibendport_count_local()
[all …]
Dinterfaces_policy.c18 dbase_config_t *dconfig = semanage_iface_dbase_policy(handle); in semanage_iface_query() local
19 return dbase_query(handle, dconfig, key, response); in semanage_iface_query()
26 dbase_config_t *dconfig = semanage_iface_dbase_policy(handle); in semanage_iface_exists() local
27 return dbase_exists(handle, dconfig, key, response); in semanage_iface_exists()
33 dbase_config_t *dconfig = semanage_iface_dbase_policy(handle); in semanage_iface_count() local
34 return dbase_count(handle, dconfig, response); in semanage_iface_count()
42 dbase_config_t *dconfig = semanage_iface_dbase_policy(handle); in semanage_iface_iterate() local
43 return dbase_iterate(handle, dconfig, handler, handler_arg); in semanage_iface_iterate()
50 dbase_config_t *dconfig = semanage_iface_dbase_policy(handle); in semanage_iface_list() local
51 return dbase_list(handle, dconfig, records, count); in semanage_iface_list()
Dbooleans_policy.c18 dbase_config_t *dconfig = semanage_bool_dbase_policy(handle); in semanage_bool_query() local
19 return dbase_query(handle, dconfig, key, response); in semanage_bool_query()
26 dbase_config_t *dconfig = semanage_bool_dbase_policy(handle); in semanage_bool_exists() local
27 return dbase_exists(handle, dconfig, key, response); in semanage_bool_exists()
33 dbase_config_t *dconfig = semanage_bool_dbase_policy(handle); in semanage_bool_count() local
34 return dbase_count(handle, dconfig, response); in semanage_bool_count()
42 dbase_config_t *dconfig = semanage_bool_dbase_policy(handle); in semanage_bool_iterate() local
43 return dbase_iterate(handle, dconfig, handler, handler_arg); in semanage_bool_iterate()
50 dbase_config_t *dconfig = semanage_bool_dbase_policy(handle); in semanage_bool_list() local
51 return dbase_list(handle, dconfig, records, count); in semanage_bool_list()
Dibpkeys_policy.c17 dbase_config_t *dconfig = semanage_ibpkey_dbase_policy(handle); in semanage_ibpkey_query() local
19 return dbase_query(handle, dconfig, key, response); in semanage_ibpkey_query()
25 dbase_config_t *dconfig = semanage_ibpkey_dbase_policy(handle); in semanage_ibpkey_exists() local
27 return dbase_exists(handle, dconfig, key, response); in semanage_ibpkey_exists()
32 dbase_config_t *dconfig = semanage_ibpkey_dbase_policy(handle); in semanage_ibpkey_count() local
34 return dbase_count(handle, dconfig, response); in semanage_ibpkey_count()
41 dbase_config_t *dconfig = semanage_ibpkey_dbase_policy(handle); in semanage_ibpkey_iterate() local
43 return dbase_iterate(handle, dconfig, handler, handler_arg); in semanage_ibpkey_iterate()
49 dbase_config_t *dconfig = semanage_ibpkey_dbase_policy(handle); in semanage_ibpkey_list() local
51 return dbase_list(handle, dconfig, records, count); in semanage_ibpkey_list()
Dnodes_policy.c18 dbase_config_t *dconfig = semanage_node_dbase_policy(handle); in semanage_node_query() local
19 return dbase_query(handle, dconfig, key, response); in semanage_node_query()
26 dbase_config_t *dconfig = semanage_node_dbase_policy(handle); in semanage_node_exists() local
27 return dbase_exists(handle, dconfig, key, response); in semanage_node_exists()
33 dbase_config_t *dconfig = semanage_node_dbase_policy(handle); in semanage_node_count() local
34 return dbase_count(handle, dconfig, response); in semanage_node_count()
42 dbase_config_t *dconfig = semanage_node_dbase_policy(handle); in semanage_node_iterate() local
43 return dbase_iterate(handle, dconfig, handler, handler_arg); in semanage_node_iterate()
50 dbase_config_t *dconfig = semanage_node_dbase_policy(handle); in semanage_node_list() local
51 return dbase_list(handle, dconfig, records, count); in semanage_node_list()
Dibendports_policy.c17 dbase_config_t *dconfig = semanage_ibendport_dbase_policy(handle); in semanage_ibendport_query() local
19 return dbase_query(handle, dconfig, key, response); in semanage_ibendport_query()
26 dbase_config_t *dconfig = semanage_ibendport_dbase_policy(handle); in semanage_ibendport_exists() local
28 return dbase_exists(handle, dconfig, key, response); in semanage_ibendport_exists()
34 dbase_config_t *dconfig = semanage_ibendport_dbase_policy(handle); in semanage_ibendport_count() local
36 return dbase_count(handle, dconfig, response); in semanage_ibendport_count()
43 dbase_config_t *dconfig = semanage_ibendport_dbase_policy(handle); in semanage_ibendport_iterate() local
45 return dbase_iterate(handle, dconfig, handler, handler_arg); in semanage_ibendport_iterate()
52 dbase_config_t *dconfig = semanage_ibendport_dbase_policy(handle); in semanage_ibendport_list() local
54 return dbase_list(handle, dconfig, records, count); in semanage_ibendport_list()
Dports_policy.c18 dbase_config_t *dconfig = semanage_port_dbase_policy(handle); in semanage_port_query() local
19 return dbase_query(handle, dconfig, key, response); in semanage_port_query()
26 dbase_config_t *dconfig = semanage_port_dbase_policy(handle); in semanage_port_exists() local
27 return dbase_exists(handle, dconfig, key, response); in semanage_port_exists()
33 dbase_config_t *dconfig = semanage_port_dbase_policy(handle); in semanage_port_count() local
34 return dbase_count(handle, dconfig, response); in semanage_port_count()
42 dbase_config_t *dconfig = semanage_port_dbase_policy(handle); in semanage_port_iterate() local
43 return dbase_iterate(handle, dconfig, handler, handler_arg); in semanage_port_iterate()
50 dbase_config_t *dconfig = semanage_port_dbase_policy(handle); in semanage_port_list() local
51 return dbase_list(handle, dconfig, records, count); in semanage_port_list()
Dseusers_policy.c22 dbase_config_t *dconfig = semanage_seuser_dbase_policy(handle); in semanage_seuser_query() local
23 return dbase_query(handle, dconfig, key, response); in semanage_seuser_query()
30 dbase_config_t *dconfig = semanage_seuser_dbase_policy(handle); in semanage_seuser_exists() local
31 return dbase_exists(handle, dconfig, key, response); in semanage_seuser_exists()
37 dbase_config_t *dconfig = semanage_seuser_dbase_policy(handle); in semanage_seuser_count() local
38 return dbase_count(handle, dconfig, response); in semanage_seuser_count()
46 dbase_config_t *dconfig = semanage_seuser_dbase_policy(handle); in semanage_seuser_iterate() local
47 return dbase_iterate(handle, dconfig, handler, handler_arg); in semanage_seuser_iterate()
56 dbase_config_t *dconfig = semanage_seuser_dbase_policy(handle); in hidden_def() local
57 return dbase_list(handle, dconfig, records, count); in hidden_def()
Dusers_policy.c18 dbase_config_t *dconfig = semanage_user_dbase_policy(handle); in semanage_user_query() local
19 return dbase_query(handle, dconfig, key, response); in semanage_user_query()
28 dbase_config_t *dconfig = semanage_user_dbase_policy(handle); in hidden_def() local
29 return dbase_exists(handle, dconfig, key, response); in hidden_def()
37 dbase_config_t *dconfig = semanage_user_dbase_policy(handle); in hidden_def() local
38 return dbase_count(handle, dconfig, response); in hidden_def()
46 dbase_config_t *dconfig = semanage_user_dbase_policy(handle); in semanage_user_iterate() local
47 return dbase_iterate(handle, dconfig, handler, handler_arg); in semanage_user_iterate()
54 dbase_config_t *dconfig = semanage_user_dbase_policy(handle); in semanage_user_list() local
55 return dbase_list(handle, dconfig, records, count); in semanage_user_list()
Dibpkeys_local.c21 dbase_config_t *dconfig = semanage_ibpkey_dbase_local(handle); in semanage_ibpkey_modify_local() local
23 return dbase_modify(handle, dconfig, key, data); in semanage_ibpkey_modify_local()
29 dbase_config_t *dconfig = semanage_ibpkey_dbase_local(handle); in semanage_ibpkey_del_local() local
31 return dbase_del(handle, dconfig, key); in semanage_ibpkey_del_local()
38 dbase_config_t *dconfig = semanage_ibpkey_dbase_local(handle); in semanage_ibpkey_query_local() local
40 return dbase_query(handle, dconfig, key, response); in semanage_ibpkey_query_local()
47 dbase_config_t *dconfig = semanage_ibpkey_dbase_local(handle); in semanage_ibpkey_exists_local() local
49 return dbase_exists(handle, dconfig, key, response); in semanage_ibpkey_exists_local()
55 dbase_config_t *dconfig = semanage_ibpkey_dbase_local(handle); in semanage_ibpkey_count_local() local
57 return dbase_count(handle, dconfig, response); in semanage_ibpkey_count_local()
[all …]
Dboolean_internal.h30 dbase_config_t * dconfig);
32 extern void bool_file_dbase_release(dbase_config_t * dconfig);
35 dbase_config_t * dconfig);
37 extern void bool_policydb_dbase_release(dbase_config_t * dconfig);
40 dbase_config_t * dconfig);
42 extern void bool_activedb_dbase_release(dbase_config_t * dconfig);
Ddatabase.h184 dbase_config_t * dconfig,
188 dbase_config_t * dconfig,
192 dbase_config_t * dconfig,
196 dbase_config_t * dconfig, const record_key_t * key);
199 dbase_config_t * dconfig,
203 dbase_config_t * dconfig,
207 dbase_config_t * dconfig, unsigned int *response);
210 dbase_config_t * dconfig,
215 dbase_config_t * dconfig,
Dseusers_local.c129 dbase_config_t *dconfig = semanage_seuser_dbase_local(handle); in semanage_seuser_modify_local() local
165 rc = dbase_modify(handle, dconfig, key, new); in semanage_seuser_modify_local()
180 dbase_config_t *dconfig = semanage_seuser_dbase_local(handle); in semanage_seuser_del_local() local
181 rc = dbase_del(handle, dconfig, key); in semanage_seuser_del_local()
195 dbase_config_t *dconfig = semanage_seuser_dbase_local(handle); in semanage_seuser_query_local() local
196 return dbase_query(handle, dconfig, key, response); in semanage_seuser_query_local()
204 dbase_config_t *dconfig = semanage_seuser_dbase_local(handle); in semanage_seuser_exists_local() local
205 return dbase_exists(handle, dconfig, key, response); in semanage_seuser_exists_local()
212 dbase_config_t *dconfig = semanage_seuser_dbase_local(handle); in semanage_seuser_count_local() local
213 return dbase_count(handle, dconfig, response); in semanage_seuser_count_local()
[all …]
Duser_internal.h46 dbase_config_t * dconfig);
48 extern void user_base_file_dbase_release(dbase_config_t * dconfig);
54 dbase_config_t * dconfig);
56 extern void user_extra_file_dbase_release(dbase_config_t * dconfig);
60 dbase_config_t * dconfig);
62 extern void user_base_policydb_dbase_release(dbase_config_t * dconfig);
68 dbase_config_t * dconfig);
70 extern void user_join_dbase_release(dbase_config_t * dconfig);
Dusers_join.c32 dbase_config_t * join2, dbase_config_t * dconfig) in user_join_dbase_init() argument
38 join1, join2, &dconfig->dbase) < 0) in user_join_dbase_init()
41 dconfig->dtable = &SEMANAGE_JOIN_DTABLE; in user_join_dbase_init()
45 void user_join_dbase_release(dbase_config_t * dconfig) in user_join_dbase_release() argument
48 dbase_join_release(dconfig->dbase); in user_join_dbase_release()
Dbooleans_policydb.c54 dbase_config_t * dconfig) in bool_policydb_dbase_init() argument
62 &dconfig->dbase) < 0) in bool_policydb_dbase_init()
65 dconfig->dtable = &SEMANAGE_POLICYDB_DTABLE; in bool_policydb_dbase_init()
69 void bool_policydb_dbase_release(dbase_config_t * dconfig) in bool_policydb_dbase_release() argument
72 dbase_policydb_release(dconfig->dbase); in bool_policydb_dbase_release()

12