/third_party/selinux/libsepol/include/sepol/ |
H A D | node_record.h | 27 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 * handl [all...] |
H A D | handle.h | 9 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);
|
H A D | user_record.h | 17 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 * handl [all...] |
H A D | context_record.h | 19 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,
|
H A D | ibendport_record.h | 23 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,
|
H A D | iface_record.h | 26 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,
|
H A D | ibpkey_record.h | 26 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,
|
H A D | debug.h | 18 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 *
|
H A D | users.h | 14 extern int sepol_user_modify(sepol_handle_t * handle, 20 extern int sepol_user_count(sepol_handle_t * handle, 24 extern int sepol_user_exists(sepol_handle_t * handle, 29 extern int sepol_user_query(sepol_handle_t * handle, 39 extern int sepol_user_iterate(sepol_handle_t * handle,
|
H A D | ports.h | 13 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,
|
H A D | ibendports.h | 13 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,
|
H A D | booleans.h | 14 extern int sepol_bool_set(sepol_handle_t * handle, 20 extern int sepol_bool_count(sepol_handle_t * handle, 24 extern int sepol_bool_exists(sepol_handle_t * handle, 29 extern int sepol_bool_query(sepol_handle_t * handle, 40 extern int sepol_bool_iterate(sepol_handle_t * handle,
|
H A D | interfaces.h | 13 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,
|
H A D | ibpkeys.h | 14 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,
|
H A D | nodes.h | 13 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,
|
H A D | boolean_record.h | 17 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,
|
H A D | port_record.h | 28 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,
|
/third_party/selinux/libsepol/src/ |
H A D | handle.c | 6 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()
|
H A D | debug.c | 21 int sepol_msg_get_level(sepol_handle_t * handle) in sepol_msg_get_level() 27 const char *sepol_msg_get_channel(sepol_handle_t * handle) in sepol_msg_get_channel() 33 const char *sepol_msg_get_fname(sepol_handle_t * handle) in sepol_msg_get_fname() 42 sepol_handle_t * handle, in sepol_msg_default_handler() 71 extern void sepol_msg_set_callback(sepol_handle_t * handle, in sepol_msg_set_callback() 76 sepol_handle_t * in sepol_msg_set_callback()
|
H A D | ibpkey_record.c | 34 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() 77 static int ibpkey_alloc_subnet_prefix_string(sepol_handle_t *handle, in ibpkey_alloc_subnet_prefix_string() 98 int sepol_ibpkey_key_create(sepol_handle_t *handle, in sepol_ibpkey_key_create() 140 int sepol_ibpkey_key_extract(sepol_handle_t *handle, in sepol_ibpkey_key_extract() 233 int sepol_ibpkey_get_subnet_prefix(sepol_handle_t *handle, in sepol_ibpkey_get_subnet_prefix() 262 int sepol_ibpkey_set_subnet_prefix(sepol_handle_t *handle, in sepol_ibpkey_set_subnet_prefix() 288 int sepol_ibpkey_create(sepol_handle_t *handle, sepol_ibpkey_t **ibpkey) in sepol_ibpkey_create() 308 int sepol_ibpkey_clone(sepol_handle_t *handle, in sepol_ibpkey_clone() 351 int sepol_ibpkey_set_con(sepol_handle_t *handl [all...] |
H A D | node_record.c | 44 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() 183 static int node_alloc_addr_string(sepol_handle_t * handle, in node_alloc_addr_string() 222 int sepol_node_key_create(sepol_handle_t * handle, in sepol_node_key_create() 271 int sepol_node_key_extract(sepol_handle_t * handle, in sepol_node_key_extract() 352 int sepol_node_get_addr(sepol_handle_t * handle, in sepol_node_get_addr() 374 int sepol_node_get_addr_bytes(sepol_handle_t * handle, in sepol_node_get_addr_bytes() 392 int sepol_node_set_addr(sepol_handle_t * handle, in sepol_node_set_addr() 417 int sepol_node_set_addr_bytes(sepol_handle_t * handl [all...] |
H A D | policydb_validate.c | 20 sepol_handle_t *handle; 204 static int validate_scopes(sepol_handle_t *handle, const symtab_t scopes[], const avrule_block_t *block) in validate_scopes() 228 static int validate_constraint_nodes(sepol_handle_t *handle, unsigned int nperms, const constraint_node_t *cons, validate_t flavors[]) in validate_constraint_nodes() 347 static int validate_common_datum(sepol_handle_t *handle, const common_datum_t *common, validate_t flavors[]) in validate_common_datum() 368 static int validate_class_datum(sepol_handle_t *handle, const class_datum_t *class, validate_t flavors[]) in validate_class_datum() 436 static int validate_role_datum(sepol_handle_t *handle, const role_datum_t *role, validate_t flavors[]) in validate_role_datum() 491 static int validate_type_datum(sepol_handle_t *handle, const type_datum_t *type, const policydb_t *p, validate_t flavors[]) in validate_type_datum() 618 static int validate_user_datum(sepol_handle_t *handle, const user_datum_t *user, validate_t flavors[], const policydb_t *p) in validate_user_datum() 649 static int validate_bool_datum(sepol_handle_t *handle, const cond_bool_datum_t *boolean, validate_t flavors[]) in validate_bool_datum() 684 static int validate_datum_array_gaps(sepol_handle_t *handl [all...] |
H A D | iface_record.c | 27 int sepol_iface_key_create(sepol_handle_t * handle, in sepol_iface_key_create() 58 int sepol_iface_key_extract(sepol_handle_t * handle, in sepol_iface_key_extract() 95 int sepol_iface_create(sepol_handle_t * handle, sepol_iface_t ** iface) in sepol_iface_create() 124 int sepol_iface_set_name(sepol_handle_t * handle, in sepol_iface_set_name() 147 int sepol_iface_set_ifcon(sepol_handle_t * handle, in sepol_iface_set_ifcon() 172 int sepol_iface_set_msgcon(sepol_handle_t * handle, in sepol_iface_set_msgcon() 189 int sepol_iface_clone(sepol_handle_t * handle, in sepol_iface_clone()
|
H A D | booleans.c | 14 static int bool_update(sepol_handle_t * handle, in bool_update() 54 static int bool_to_record(sepol_handle_t * handle, in bool_to_record() 82 int sepol_bool_set(sepol_handle_t * handle, in sepol_bool_set() 106 int sepol_bool_count(sepol_handle_t * handle __attribute__ ((unused)), in sepol_bool_count() 116 int sepol_bool_exists(sepol_handle_t * handle, in sepol_bool_exists() 139 int sepol_bool_query(sepol_handle_t * handle, in sepol_bool_query() 178 int sepol_bool_iterate(sepol_handle_t * handle, in sepol_bool_iterate()
|
/third_party/selinux/libsepol/include/sepol/policydb/ |
H A D | hierarchy.h | 35 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);
|