Lines Matching refs:handle
37 #include "handle.h"
42 int mls_to_string(sepol_handle_t * handle,
70 ERR(handle, "out of memory, could not convert mls context to string");
78 int mls_from_string(sepol_handle_t * handle,
89 ERR(handle, "invalid MLS context %s", str);
98 ERR(handle, "out of memory");
101 ERR(handle, "could not construct mls context structure");
146 /* Handle case where last category is the end of range */
228 /* Handle case where last category is the end of range */
651 int sepol_mls_contains(sepol_handle_t * handle,
664 if (mls_from_string(handle, &policydb->p, mls1, ctx1) < 0)
667 if (mls_from_string(handle, &policydb->p, mls2, ctx2) < 0)
678 ERR(handle, "out of memory");
681 ERR(handle, "could not check if mls context %s contains %s",
690 int sepol_mls_check(sepol_handle_t * handle,
697 ERR(handle, "out of memory, could not check if "
703 ret = mls_from_string(handle, &policydb->p, mls, con);