Home | History | Annotate | Download | only in src

Lines Matching refs:handle

16 #include <semanage/handle.h>
23 static int node_print(semanage_handle_t * handle,
35 if (semanage_node_get_addr(handle, node, &addr) < 0)
38 if (semanage_node_get_mask(handle, node, &mask) < 0)
41 if (semanage_context_to_string(handle, con, &con_str) < 0)
57 ERR(handle, "could not print node to stream");
61 static int node_parse(semanage_handle_t * handle,
69 if (parse_skip_space(handle, info) < 0)
75 if (parse_assert_str(handle, info, "nodecon") < 0)
77 if (parse_assert_space(handle, info) < 0)
81 if (parse_fetch_string(handle, info, &str, ' ') < 0)
88 ERR(handle, "invalid protocol \"%s\" (%s: %u):\n%s", str,
98 if (parse_assert_space(handle, info) < 0)
100 if (parse_fetch_string(handle, info, &str, ' ') < 0)
102 if (semanage_node_set_addr(handle, node, proto, str) < 0)
104 if (parse_assert_space(handle, info) < 0)
110 if (parse_fetch_string(handle, info, &str, ' ') < 0)
112 if (semanage_node_set_mask(handle, node, proto, str) < 0)
114 if (parse_assert_space(handle, info) < 0)
120 if (parse_fetch_string(handle, info, &str, ' ') < 0)
122 if (semanage_context_from_string(handle, str, &con) < 0) {
123 ERR(handle, "invalid security context \"%s\" (%s: %u)\n%s",
128 ERR(handle, "<<none>> context is not valid "
136 if (semanage_node_set_con(handle, node, con) < 0)
139 if (parse_assert_space(handle, info) < 0)
150 ERR(handle, "could not parse node record");
163 int node_file_dbase_init(semanage_handle_t * handle,
169 if (dbase_file_init(handle,