Home | History | Annotate | Download | only in src

Lines Matching refs:handle

16 #include <semanage/handle.h>
23 static int ibpkey_print(semanage_handle_t *handle,
32 if (semanage_ibpkey_get_subnet_prefix(handle, ibpkey, &subnet_prefix_str) != 0)
48 if (semanage_context_to_string(handle, con, &con_str) < 0)
58 ERR(handle, "could not print ibpkey range (%s) %u - %u to stream",
65 static int ibpkey_parse(semanage_handle_t *handle,
72 if (parse_skip_space(handle, info) < 0)
78 if (parse_assert_str(handle, info, "ibpkeycon") < 0)
80 if (parse_assert_space(handle, info) < 0)
84 if (parse_fetch_string(handle, info, &str, ' ') < 0)
86 if (semanage_ibpkey_set_subnet_prefix(handle, ibpkey, str) < 0)
92 if (parse_assert_space(handle, info) < 0)
94 if (parse_fetch_int(handle, info, &low, '-') < 0)
103 if (parse_assert_space(handle, info) < 0)
108 if (parse_skip_space(handle, info) < 0)
110 if (parse_fetch_int(handle, info, &high, ' ') < 0)
112 if (parse_assert_space(handle, info) < 0)
119 if (parse_fetch_string(handle, info, &str, ' ') < 0)
121 if (semanage_context_from_string(handle, str, &con) < 0) {
122 ERR(handle, "invalid security context \"%s\" (%s: %u)\n%s",
127 ERR(handle, "<<none>> context is not valid for ibpkeys (%s: %u):\n%s",
135 if (semanage_ibpkey_set_con(handle, ibpkey, con) < 0)
138 if (parse_assert_space(handle, info) < 0)
149 ERR(handle, "could not parse ibpkey record");
162 int ibpkey_file_dbase_init(semanage_handle_t *handle,
167 if (dbase_file_init(handle,