/external/selinux/libsemanage/src/ |
D | interfaces_file.c | 26 char *con_str = NULL; in iface_print() local 35 if (semanage_context_to_string(handle, ifcon, &con_str) < 0) in iface_print() 37 if (fprintf(str, "%s ", con_str) < 0) in iface_print() 39 free(con_str); in iface_print() 40 con_str = NULL; in iface_print() 42 if (semanage_context_to_string(handle, msgcon, &con_str) < 0) in iface_print() 44 if (fprintf(str, "%s\n", con_str) < 0) in iface_print() 46 free(con_str); in iface_print() 47 con_str = NULL; in iface_print() 53 free(con_str); in iface_print()
|
D | fcontexts_file.c | 50 char *con_str = NULL; in fcontext_print() local 62 if (semanage_context_to_string(handle, con, &con_str) < 0) in fcontext_print() 64 if (fprintf(str, "%s\n", con_str) < 0) in fcontext_print() 66 free(con_str); in fcontext_print() 67 con_str = NULL; in fcontext_print() 77 free(con_str); in fcontext_print()
|
D | ibendports_file.c | 27 char *con_str = NULL; in ibendport_print() local 42 if (semanage_context_to_string(handle, con, &con_str) < 0) in ibendport_print() 44 if (fprintf(str, "%s\n", con_str) < 0) in ibendport_print() 48 free(con_str); in ibendport_print() 55 free(con_str); in ibendport_print()
|
D | ibpkeys_file.c | 26 char *con_str = NULL; in ibpkey_print() local 48 if (semanage_context_to_string(handle, con, &con_str) < 0) in ibpkey_print() 50 if (fprintf(str, "%s\n", con_str) < 0) in ibpkey_print() 54 free(con_str); in ibpkey_print() 61 free(con_str); in ibpkey_print()
|
D | ports_file.c | 27 char *con_str = NULL; in port_print() local 46 if (semanage_context_to_string(handle, con, &con_str) < 0) in port_print() 48 if (fprintf(str, "%s\n", con_str) < 0) in port_print() 51 free(con_str); in port_print() 57 free(con_str); in port_print()
|
D | nodes_file.c | 27 char *con_str = NULL; in node_print() local 41 if (semanage_context_to_string(handle, con, &con_str) < 0) in node_print() 45 (str, "nodecon %s %s %s %s\n", proto_str, addr, mask, con_str) < 0) in node_print() 50 free(con_str); in node_print() 56 free(con_str); in node_print()
|
D | pywrap-test.py | 242 (rc, con_str) = semanage.semanage_context_to_string(sh, con) 244 con_str = "" 245 print("Port: %s %s Context: %s" % (range_str, proto_str, con_str)) 268 con_str = "<<none>>" 270 (rc, con_str) = semanage.semanage_context_to_string(sh, con) 272 con_str = "" 273 print("File Expr: %s [%s] Context: %s" % (expr, type_str, con_str)) 371 (status, con_str) = semanage.semanage_context_to_string(sh, con) 373 con_str = "" 375 print("Network Node: %s/%s (%s) Context: %s" % (addr, mask, proto_str, con_str))
|
/external/selinux/libsemanage/tests/ |
D | test_fcontext.c | 452 const char *con_str) in helper_fcontext_get_set_con() argument 462 if (con_str != NULL) { in helper_fcontext_get_set_con() 463 CU_ASSERT(semanage_context_from_string(sh, con_str, &con) >= 0); in helper_fcontext_get_set_con() 473 if (con_str != NULL) { in helper_fcontext_get_set_con() 768 const char *con_str, int exp_res) in helper_fcontext_modify_del_local() argument 782 if (con_str != NULL) { in helper_fcontext_modify_del_local() 783 CU_ASSERT(semanage_context_from_string(sh, con_str, &con) >= 0); in helper_fcontext_modify_del_local()
|
/external/selinux/libsepol/src/ |
D | context.h | 25 const char *con_str, size_t con_str_len);
|
D | context.c | 294 const char *con_str, size_t con_str_len) in context_from_string() argument 312 memcpy(con_cpy, con_str, con_str_len); in context_from_string()
|