Home | History | Annotate | Download | only in src

Lines Matching refs:handle

5 #include "handle.h"
12 static int iface_from_record(sepol_handle_t * handle,
30 if (context_from_record(handle, policydb,
39 if (context_from_record(handle, policydb,
51 ERR(handle, "out of memory");
62 ERR(handle, "error creating interface structure");
66 static int iface_to_record(sepol_handle_t * handle,
78 if (sepol_iface_create(handle, &tmp_record) < 0)
81 if (sepol_iface_set_name(handle, tmp_record, name) < 0)
84 if (context_to_record(handle, policydb, ifcon, &tmp_con) < 0)
86 if (sepol_iface_set_ifcon(handle, tmp_record, tmp_con) < 0)
91 if (context_to_record(handle, policydb, msgcon, &tmp_con) < 0)
93 if (sepol_iface_set_msgcon(handle, tmp_record, tmp_con) < 0)
102 ERR(handle, "could not convert interface %s to record", name);
109 int sepol_iface_exists(sepol_handle_t * handle __attribute__ ((unused)),
129 handle = NULL;
134 int sepol_iface_query(sepol_handle_t * handle,
149 if (iface_to_record(handle, policydb, c, response) < 0)
160 ERR(handle, "could not query interface %s", name);
165 int sepol_iface_modify(sepol_handle_t * handle,
177 if (iface_from_record(handle, policydb, &iface, data) < 0)
207 ERR(handle, "error while loading interface %s", name);
219 extern int sepol_iface_count(sepol_handle_t * handle __attribute__ ((unused)),
233 handle = NULL;
237 int sepol_iface_iterate(sepol_handle_t * handle,
251 if (iface_to_record(handle, policydb, c, &iface) < 0)
270 ERR(handle, "could not iterate over interfaces");