Home | History | Annotate | Download | only in src

Lines Matching refs:handle

16 #include <semanage/handle.h>
23 static int port_print(semanage_handle_t * handle,
46 if (semanage_context_to_string(handle, con, &con_str) < 0)
55 ERR(handle, "could not print port range %u - %u (%s) to stream",
61 static int port_parse(semanage_handle_t * handle,
69 if (parse_skip_space(handle, info) < 0)
75 if (parse_assert_str(handle, info, "portcon") < 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,
96 if (parse_assert_space(handle, info) < 0)
98 if (parse_fetch_int(handle, info, &low, '-') < 0)
106 if (parse_assert_space(handle, info) < 0)
112 if (parse_skip_space(handle, info) < 0)
114 if (parse_fetch_int(handle, info, &high, ' ') < 0)
116 if (parse_assert_space(handle, info) < 0)
123 if (parse_fetch_string(handle, info, &str, ' ') < 0)
125 if (semanage_context_from_string(handle, str, &con) < 0) {
126 ERR(handle, "invalid security context \"%s\" (%s: %u)\n%s",
131 ERR(handle, "<<none>> context is not valid "
139 if (semanage_port_set_con(handle, port, con) < 0)
142 if (parse_assert_space(handle, info) < 0)
153 ERR(handle, "could not parse port record");
166 int port_file_dbase_init(semanage_handle_t * handle,
172 if (dbase_file_init(handle,