Home | History | Annotate | Download | only in src

Lines Matching full:handle

16 #include <semanage/handle.h>
46 static int fcontext_print(semanage_handle_t * handle,
62 if (semanage_context_to_string(handle, con, &con_str) < 0)
75 ERR(handle, "could not print file context for "
81 static int fcontext_parse(semanage_handle_t * handle,
88 if (parse_skip_space(handle, info) < 0)
94 if (parse_fetch_string(handle, info, &str, ' ') < 0)
96 if (semanage_fcontext_set_expr(handle, fcontext, str) < 0)
102 if (parse_assert_space(handle, info) < 0)
104 if (parse_fetch_string(handle, info, &str, ' ') < 0)
126 if (parse_assert_space(handle, info) < 0)
128 if (parse_fetch_string(handle, info, &str, ' ') < 0)
132 if (semanage_context_from_string(handle, str, &con) < 0) {
133 ERR(handle, "invalid security context \"%s\" (%s: %u)\n%s",
140 if (con && semanage_fcontext_set_con(handle, fcontext, con) < 0)
143 if (parse_assert_space(handle, info) < 0)
154 ERR(handle, "could not parse file context record");
167 int fcontext_file_dbase_init(semanage_handle_t * handle,
173 if (dbase_file_init(handle,