Home
last modified time | relevance | path

Searched refs:con_str (Results 1 – 10 of 10) sorted by relevance

/external/selinux/libsemanage/src/
Dinterfaces_file.c26 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()
Dfcontexts_file.c50 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()
Dibendports_file.c27 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()
Dibpkeys_file.c26 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()
Dports_file.c27 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()
Dnodes_file.c27 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()
Dpywrap-test.py242 (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/
Dtest_fcontext.c452 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/
Dcontext.h25 const char *con_str, size_t con_str_len);
Dcontext.c294 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()