Home | History | Annotate | Download | only in src

Lines Matching refs:handle

15 #include <semanage/handle.h>
22 static int iface_print(semanage_handle_t * handle,
35 if (semanage_context_to_string(handle, ifcon, &con_str) < 0)
42 if (semanage_context_to_string(handle, msgcon, &con_str) < 0)
52 ERR(handle, "could not print interface %s to stream", name);
57 static int iface_parse(semanage_handle_t * handle,
64 if (parse_skip_space(handle, info) < 0)
70 if (parse_assert_str(handle, info, "netifcon") < 0)
72 if (parse_assert_space(handle, info) < 0)
76 if (parse_fetch_string(handle, info, &str, ' ') < 0)
78 if (semanage_iface_set_name(handle, iface, str) < 0)
84 if (parse_assert_space(handle, info) < 0)
86 if (parse_fetch_string(handle, info, &str, ' ') < 0)
88 if (semanage_context_from_string(handle, str, &con) < 0) {
89 ERR(handle, "invalid security context \"%s\" (%s: %u)\n%s",
94 ERR(handle, "<<none>> context is not valid for "
102 if (semanage_iface_set_ifcon(handle, iface, con) < 0)
108 if (parse_assert_space(handle, info) < 0)
110 if (parse_fetch_string(handle, info, &str, ' ') < 0)
112 if (semanage_context_from_string(handle, str, &con) < 0) {
113 ERR(handle, "invalid security context \"%s\" (%s: %u)\n%s",
118 ERR(handle, "<<none>> context is not valid for "
126 if (semanage_iface_set_msgcon(handle, iface, con) < 0)
131 if (parse_assert_space(handle, info) < 0)
141 ERR(handle, "could not parse interface record");
154 int iface_file_dbase_init(semanage_handle_t * handle,
160 if (dbase_file_init(handle,