Home
last modified time | relevance | path

Searched refs:sepol_handle_t (Results 1 – 25 of 66) sorted by relevance

123

/external/selinux/libsepol/include/sepol/
Dnode_record.h27 extern int sepol_node_key_create(sepol_handle_t * handle,
36 extern int sepol_node_key_extract(sepol_handle_t * handle,
43 extern int sepol_node_get_addr(sepol_handle_t * handle,
46 extern int sepol_node_get_addr_bytes(sepol_handle_t * handle,
50 extern int sepol_node_set_addr(sepol_handle_t * handle,
54 extern int sepol_node_set_addr_bytes(sepol_handle_t * handle,
59 extern int sepol_node_get_mask(sepol_handle_t * handle,
62 extern int sepol_node_get_mask_bytes(sepol_handle_t * handle,
66 extern int sepol_node_set_mask(sepol_handle_t * handle,
70 extern int sepol_node_set_mask_bytes(sepol_handle_t * handle,
[all …]
Dhandle.h9 typedef struct sepol_handle sepol_handle_t; typedef
12 sepol_handle_t *sepol_handle_create(void);
18 int sepol_get_disable_dontaudit(sepol_handle_t * sh);
22 void sepol_set_disable_dontaudit(sepol_handle_t * sh, int disable_dontaudit);
26 void sepol_set_expand_consume_base(sepol_handle_t * sh, int consume_base);
29 void sepol_handle_destroy(sepol_handle_t *);
32 int sepol_get_preserve_tunables(sepol_handle_t * sh);
36 void sepol_set_preserve_tunables(sepol_handle_t * sh, int preserve_tunables);
Duser_record.h17 extern int sepol_user_key_create(sepol_handle_t * handle,
23 extern int sepol_user_key_extract(sepol_handle_t * handle,
38 extern int sepol_user_set_name(sepol_handle_t * handle,
44 extern int sepol_user_set_mlslevel(sepol_handle_t * handle,
49 extern int sepol_user_set_mlsrange(sepol_handle_t * handle,
55 extern int sepol_user_add_role(sepol_handle_t * handle,
62 extern int sepol_user_get_roles(sepol_handle_t * handle,
67 extern int sepol_user_set_roles(sepol_handle_t * handle,
72 extern int sepol_user_create(sepol_handle_t * handle, sepol_user_t ** user_ptr);
74 extern int sepol_user_clone(sepol_handle_t * handle,
Dcontext_record.h19 extern int sepol_context_set_user(sepol_handle_t * handle,
25 extern int sepol_context_set_role(sepol_handle_t * handle,
31 extern int sepol_context_set_type(sepol_handle_t * handle,
37 extern int sepol_context_set_mls(sepol_handle_t * handle,
41 extern int sepol_context_create(sepol_handle_t * handle,
44 extern int sepol_context_clone(sepol_handle_t * handle,
51 extern int sepol_context_from_string(sepol_handle_t * handle,
54 extern int sepol_context_to_string(sepol_handle_t * handle,
Dibendport_record.h23 extern int sepol_ibendport_key_create(sepol_handle_t *handle,
32 extern int sepol_ibendport_alloc_ibdev_name(sepol_handle_t *handle,
35 extern int sepol_ibendport_key_extract(sepol_handle_t *handle,
45 extern int sepol_ibendport_get_ibdev_name(sepol_handle_t *handle,
49 extern int sepol_ibendport_set_ibdev_name(sepol_handle_t *handle,
55 extern int sepol_ibendport_set_con(sepol_handle_t *handle,
59 extern int sepol_ibendport_create(sepol_handle_t *handle,
62 extern int sepol_ibendport_clone(sepol_handle_t *handle,
Diface_record.h26 extern int sepol_iface_key_create(sepol_handle_t * handle,
30 extern int sepol_iface_key_extract(sepol_handle_t * handle,
39 extern int sepol_iface_set_name(sepol_handle_t * handle,
45 extern int sepol_iface_set_ifcon(sepol_handle_t * handle,
50 extern int sepol_iface_set_msgcon(sepol_handle_t * handle,
54 extern int sepol_iface_create(sepol_handle_t * handle,
57 extern int sepol_iface_clone(sepol_handle_t * handle,
Dibpkey_record.h26 extern int sepol_ibpkey_key_create(sepol_handle_t *handle,
35 extern int sepol_ibpkey_key_extract(sepol_handle_t *handle,
49 extern int sepol_ibpkey_get_subnet_prefix(sepol_handle_t *handle,
55 extern int sepol_ibpkey_set_subnet_prefix(sepol_handle_t *handle,
64 extern int sepol_ibpkey_set_con(sepol_handle_t *handle,
67 extern int sepol_ibpkey_create(sepol_handle_t *handle, sepol_ibpkey_t **ibpkey_ptr);
69 extern int sepol_ibpkey_clone(sepol_handle_t *handle,
Ddebug.h18 extern int sepol_msg_get_level(sepol_handle_t * handle);
20 extern const char *sepol_msg_get_channel(sepol_handle_t * handle);
22 extern const char *sepol_msg_get_fname(sepol_handle_t * handle);
29 extern void sepol_msg_set_callback(sepol_handle_t * handle,
34 sepol_handle_t *
Dinterfaces.h13 extern int sepol_iface_count(sepol_handle_t * handle,
18 extern int sepol_iface_exists(sepol_handle_t * handle,
24 extern int sepol_iface_query(sepol_handle_t * handle,
31 extern int sepol_iface_modify(sepol_handle_t * handle,
42 extern int sepol_iface_iterate(sepol_handle_t * handle,
Dibendports.h13 extern int sepol_ibendport_count(sepol_handle_t *handle,
18 extern int sepol_ibendport_exists(sepol_handle_t *handle,
23 extern int sepol_ibendport_query(sepol_handle_t *handle,
29 extern int sepol_ibendport_modify(sepol_handle_t *handle,
40 extern int sepol_ibendport_iterate(sepol_handle_t *handle,
Dibpkeys.h14 extern int sepol_ibpkey_count(sepol_handle_t *handle,
18 extern int sepol_ibpkey_exists(sepol_handle_t *handle,
23 extern int sepol_ibpkey_query(sepol_handle_t *handle,
29 extern int sepol_ibpkey_modify(sepol_handle_t *handle,
40 extern int sepol_ibpkey_iterate(sepol_handle_t *handle,
Dnodes.h13 extern int sepol_node_count(sepol_handle_t * handle,
17 extern int sepol_node_exists(sepol_handle_t * handle,
22 extern int sepol_node_query(sepol_handle_t * handle,
28 extern int sepol_node_modify(sepol_handle_t * handle,
39 extern int sepol_node_iterate(sepol_handle_t * handle,
Dports.h13 extern int sepol_port_count(sepol_handle_t * handle,
17 extern int sepol_port_exists(sepol_handle_t * handle,
22 extern int sepol_port_query(sepol_handle_t * handle,
28 extern int sepol_port_modify(sepol_handle_t * handle,
39 extern int sepol_port_iterate(sepol_handle_t * handle,
Dbooleans.h32 extern int sepol_bool_set(sepol_handle_t * handle,
38 extern int sepol_bool_count(sepol_handle_t * handle,
42 extern int sepol_bool_exists(sepol_handle_t * handle,
47 extern int sepol_bool_query(sepol_handle_t * handle,
58 extern int sepol_bool_iterate(sepol_handle_t * handle,
Dusers.h31 extern int sepol_user_modify(sepol_handle_t * handle,
37 extern int sepol_user_count(sepol_handle_t * handle,
41 extern int sepol_user_exists(sepol_handle_t * handle,
46 extern int sepol_user_query(sepol_handle_t * handle,
56 extern int sepol_user_iterate(sepol_handle_t * handle,
Dboolean_record.h17 extern int sepol_bool_key_create(sepol_handle_t * handle,
23 extern int sepol_bool_key_extract(sepol_handle_t * handle,
38 extern int sepol_bool_set_name(sepol_handle_t * handle,
47 extern int sepol_bool_create(sepol_handle_t * handle, sepol_bool_t ** bool_ptr);
49 extern int sepol_bool_clone(sepol_handle_t * handle,
Dport_record.h28 extern int sepol_port_key_create(sepol_handle_t * handle,
35 extern int sepol_port_key_extract(sepol_handle_t * handle,
60 extern int sepol_port_set_con(sepol_handle_t * handle,
64 extern int sepol_port_create(sepol_handle_t * handle, sepol_port_t ** port_ptr);
66 extern int sepol_port_clone(sepol_handle_t * handle,
/external/selinux/libsepol/src/
Dhandle.c6 sepol_handle_t *sepol_handle_create(void) in sepol_handle_create()
9 sepol_handle_t *sh = malloc(sizeof(sepol_handle_t)); in sepol_handle_create()
27 int sepol_get_preserve_tunables(sepol_handle_t *sh) in sepol_get_preserve_tunables()
33 void sepol_set_preserve_tunables(sepol_handle_t * sh, int preserve_tunables) in sepol_set_preserve_tunables()
39 int sepol_get_disable_dontaudit(sepol_handle_t *sh) in sepol_get_disable_dontaudit()
45 void sepol_set_disable_dontaudit(sepol_handle_t * sh, int disable_dontaudit) in sepol_set_disable_dontaudit()
51 void sepol_set_expand_consume_base(sepol_handle_t *sh, int consume_base) in sepol_set_expand_consume_base()
57 void sepol_handle_destroy(sepol_handle_t * sh) in sepol_handle_destroy()
Ddebug.c21 int sepol_msg_get_level(sepol_handle_t * handle) in sepol_msg_get_level()
28 const char *sepol_msg_get_channel(sepol_handle_t * handle) in hidden_def()
35 const char *sepol_msg_get_fname(sepol_handle_t * handle) in hidden_def()
45 sepol_handle_t * handle, in hidden_def()
74 extern void sepol_msg_set_callback(sepol_handle_t * handle, in sepol_msg_set_callback()
79 sepol_handle_t * in sepol_msg_set_callback()
Dnode_record.c44 static int node_parse_addr(sepol_handle_t * handle, in node_parse_addr()
88 static int node_alloc_addr(sepol_handle_t * handle, in node_alloc_addr()
134 static int node_expand_addr(sepol_handle_t * handle, in node_expand_addr()
185 static int node_alloc_addr_string(sepol_handle_t * handle, in node_alloc_addr_string()
224 int sepol_node_key_create(sepol_handle_t * handle, in sepol_node_key_create()
275 int sepol_node_key_extract(sepol_handle_t * handle, in hidden_def()
357 int sepol_node_get_addr(sepol_handle_t * handle, in sepol_node_get_addr()
380 int sepol_node_get_addr_bytes(sepol_handle_t * handle, in hidden_def()
399 int sepol_node_set_addr(sepol_handle_t * handle, in hidden_def()
425 int sepol_node_set_addr_bytes(sepol_handle_t * handle, in hidden_def()
[all …]
Dibpkey_record.c34 static int ibpkey_parse_subnet_prefix(sepol_handle_t *handle, in ibpkey_parse_subnet_prefix()
55 static int ibpkey_expand_subnet_prefix(sepol_handle_t *handle, in ibpkey_expand_subnet_prefix()
78 static int ibpkey_alloc_subnet_prefix_string(sepol_handle_t *handle, in ibpkey_alloc_subnet_prefix_string()
99 int sepol_ibpkey_key_create(sepol_handle_t *handle, in sepol_ibpkey_key_create()
143 int sepol_ibpkey_key_extract(sepol_handle_t *handle, in hidden_def()
239 int sepol_ibpkey_get_subnet_prefix(sepol_handle_t *handle, in hidden_def()
270 int sepol_ibpkey_set_subnet_prefix(sepol_handle_t *handle, in hidden_def()
298 int sepol_ibpkey_create(sepol_handle_t *handle, sepol_ibpkey_t **ibpkey) in hidden_def()
319 int sepol_ibpkey_clone(sepol_handle_t *handle, in hidden_def()
364 int sepol_ibpkey_set_con(sepol_handle_t *handle, in hidden_def()
Dibendport_record.c32 int sepol_ibendport_alloc_ibdev_name(sepol_handle_t *handle, in sepol_ibendport_alloc_ibdev_name()
49 int sepol_ibendport_key_create(sepol_handle_t *handle, in sepol_ibendport_key_create()
92 int sepol_ibendport_key_extract(sepol_handle_t *handle, in hidden_def()
164 int sepol_ibendport_get_ibdev_name(sepol_handle_t *handle, in hidden_def()
185 int sepol_ibendport_set_ibdev_name(sepol_handle_t *handle, in hidden_def()
208 int sepol_ibendport_create(sepol_handle_t *handle, sepol_ibendport_t **ibendport) in hidden_def()
228 int sepol_ibendport_clone(sepol_handle_t *handle, in hidden_def()
280 int sepol_ibendport_set_con(sepol_handle_t *handle, in hidden_def()
Duser_record.c30 int sepol_user_key_create(sepol_handle_t * handle, in sepol_user_key_create()
64 int sepol_user_key_extract(sepol_handle_t * handle, in hidden_def()
104 int sepol_user_set_name(sepol_handle_t * handle, in sepol_user_set_name()
129 int sepol_user_set_mlslevel(sepol_handle_t * handle, in hidden_def()
154 int sepol_user_set_mlsrange(sepol_handle_t * handle, in hidden_def()
178 int sepol_user_add_role(sepol_handle_t * handle, in sepol_user_add_role()
225 int sepol_user_set_roles(sepol_handle_t * handle, in hidden_def()
270 int sepol_user_get_roles(sepol_handle_t * handle, in sepol_user_get_roles()
312 int sepol_user_create(sepol_handle_t * handle, sepol_user_t ** user_ptr) in sepol_user_create()
336 int sepol_user_clone(sepol_handle_t * handle, in hidden_def()
/external/selinux/libsepol/include/sepol/policydb/
Dhierarchy.h35 extern int hierarchy_add_bounds(sepol_handle_t *handle, policydb_t *p);
38 extern int bounds_check_type(sepol_handle_t *handle, policydb_t *p, uint32_t child,
41 extern int bounds_check_users(sepol_handle_t *handle, policydb_t *p);
42 extern int bounds_check_roles(sepol_handle_t *handle, policydb_t *p);
43 extern int bounds_check_types(sepol_handle_t *handle, policydb_t *p);
45 extern int hierarchy_check_constraints(sepol_handle_t * handle, policydb_t * p);
/external/selinux/libsemanage/src/
Ddatabase_policydb.h32 typedef int (*record_policydb_table_add_t) (sepol_handle_t * h,
37 typedef int (*record_policydb_table_modify_t) (sepol_handle_t * h,
42 typedef int (*record_policydb_table_set_t) (sepol_handle_t * h,
47 typedef int (*record_policydb_table_query_t) (sepol_handle_t * h,
52 typedef int (*record_policydb_table_count_t) (sepol_handle_t * h,
56 typedef int (*record_policydb_table_exists_t) (sepol_handle_t * h,
61 typedef int (*record_policydb_table_iterate_t) (sepol_handle_t * h,

123