Lines Matching full:handle
48 sepol_handle_t *handle;
97 INFO(state->handle, "copying type or attribute %s", id);
101 ERR(state->handle, "Out of memory!");
107 ERR(state->handle, "Out of memory!");
119 ERR(state->handle, "type space overflow");
131 ERR(state->handle, "hashtab overflow");
137 ERR(state->handle, "Out of memory!\n");
165 INFO(state->handle, "converting attribute %s", id);
169 ERR(state->handle, "attribute %s vanished!", id);
173 ERR(state->handle, "out of memory");
179 ERR(state->handle, "Out of memory!");
237 INFO(state->handle, "copying common %s", id);
241 ERR(state->handle, "Out of memory!");
246 ERR(state->handle, "Out of memory!");
253 ERR(state->handle, "Out of memory!");
267 ERR(state->handle, "hashtab overflow");
276 ERR(state->handle, "Out of memory!");
367 ERR(state->handle, "Out of memory!");
380 ERR(state->handle, "Found conflicting default user definitions");
388 ERR(state->handle, "Found conflicting default role definitions");
395 ERR(state->handle, "Found conflicting default type definitions");
402 ERR(state->handle, "Found conflicting default range definitions");
428 INFO(state->handle, "copying class %s", id);
432 ERR(state->handle, "Out of memory!");
437 ERR(state->handle, "Out of memory!");
453 ERR(state->handle, "Out of memory!");
462 ERR(state->handle, "hashtab overflow");
471 ERR(state->handle, "hashtab overflow");
478 ERR(state->handle, "Out of memory!");
486 ERR(state->handle, "could not find common datum %s",
510 ERR(state->handle, "class %s vanished", id);
546 ERR(state->handle, "Type lookup failed for %s", (char *)key);
550 ERR(state->handle, "Inconsistent boundary for %s", (char *)key);
576 ERR(state->handle, "Role lookup failed for %s", (char *)key);
580 ERR(state->handle, "Inconsistent boundary for %s", (char *)key);
606 ERR(state->handle, "User lookup failed for %s", (char *)key);
610 ERR(state->handle, "Inconsistent boundary for %s", (char *)key);
657 INFO(state->handle, "copying alias %s", id);
661 ERR(state->handle, "Out of memory!");
667 ERR(state->handle, "Out of memory!");
686 ERR(state->handle, "hashtab overflow");
696 ERR(state->handle, "Out of memory!");
755 INFO(state->handle, "fixing role attribute %s", id);
766 ERR(state->handle, "Out of memory!");
785 ERR(state->handle, "Out of memory!");
820 INFO(state->handle, "copying role %s", id);
827 ERR(state->handle, "Out of memory!");
834 ERR(state->handle, "Out of memory!");
848 ERR(state->handle, "hashtab overflow");
859 ERR(state->handle, "Out of memory!");
869 ERR(state->handle, "Out of memory!");
874 ERR(state->handle, "Out of memory!");
973 INFO(state->handle, "copying user %s", id);
980 ERR(state->handle, "Out of memory!");
991 ERR(state->handle, "Out of memory!");
999 ERR(state->handle, "hashtab overflow");
1009 state->out, state->handle)) {
1014 state->out, state->handle)) {
1020 ERR(state->handle, "default level not within user "
1030 state->out, state->handle)) {
1034 state->out, state->handle)) {
1052 ERR(state->handle, "Out of memory!");
1058 ERR(state->handle, "Out of memory!");
1090 INFO(state->handle, "copying boolean %s", id);
1094 ERR(state->handle, "Out of memory!");
1100 ERR(state->handle, "Out of memory!");
1112 ERR(state->handle, "hashtab overflow");
1139 INFO(state->handle, "copying sensitivity level %s", id);
1167 ERR(state->handle, "Out of memory!");
1191 INFO(state->handle, "copying category attribute %s", id);
1212 ERR(state->handle, "Out of memory!");
1236 ERR(state->handle, "Out of memory!");
1241 ERR(state->handle, "Out of memory!");
1264 ERR(state->handle, "Out of memory!");
1305 ERR(state->handle, "Out of memory!");
1310 ERR(state->handle, "Out of memory!");
1338 ERR(state->handle,
1356 ERR(state->handle,
1401 ERR(state->handle, "Out of memory!");
1407 ERR(state->handle, "Out of memory!");
1430 ERR(state->handle, "Conflicting name-based type_transition %s %s:%s \"%s\": %s vs %s",
1448 ERR(state->handle, "Out of memory!");
1457 ERR(state->handle, "Out of memory!");
1484 state->handle))
1497 ERR(state->handle,
1516 ERR(state->handle, "Out of memory!");
1527 ERR(state->handle, "Out of memory!");
1548 INFO(state->handle, "expanding range transitions");
1557 ERR(state->handle, "Out of memory!");
1563 ERR(state->handle, "Out of memory!");
1604 static avtab_ptr_t find_avtab_node(sepol_handle_t * handle,
1645 ERR(handle, "hash table overflow");
1652 ERR(handle, "Memory error");
1669 static int expand_terule_helper(sepol_handle_t * handle,
1732 ERR(handle, "duplicate TE rule for %s %s:%s %s",
1742 ERR(handle,
1752 node = find_avtab_node(handle, avtab, &avkey, cond, NULL);
1778 static int expand_avrule_helper(sepol_handle_t * handle,
1800 if (handle && handle->disable_dontaudit)
1810 if (handle && handle->disable_dontaudit)
1818 if (handle && handle->disable_dontaudit)
1832 node = find_avtab_node(handle, avtab, &avkey, cond, operations);
1867 ERR(handle, "Out of memory!");
1885 static int expand_rule_helper(sepol_handle_t * handle,
1901 retval = expand_avrule_helper(handle, source_rule->specified,
1907 retval = expand_terule_helper(handle, p, typemap,
1919 retval = expand_avrule_helper(handle, source_rule->specified,
1925 retval = expand_terule_helper(handle, p, typemap,
1944 static int convert_and_expand_rule(sepol_handle_t * handle,
1972 retval = expand_rule_helper(handle, dest_pol, typemap,
1989 if (convert_and_expand_rule(state->handle, dest_pol,
2018 ERR(state->handle, "Error while normalizing conditional");
2046 ERR(state->handle, "Error while normalizing conditional");
2054 ERR(state->handle, "Out of memory");
2061 ERR(state->handle, "Error mapping booleans");
2069 ERR(state->handle, "Out of memory!");
2108 ERR(state->handle, "Out of memory!");
2120 ERR(state->handle,
2145 ERR(state->handle, "Out of memory!");
2151 ERR(state->handle, "Unknown ocontext");
2156 ERR(state->handle, "Out of memory!");
2174 ERR(state->handle, "Out of memory!");
2186 ERR(state->handle,
2197 ERR(state->handle, "Out of memory!");
2202 ERR(state->handle, "Out of memory!");
2219 ERR(state->handle, "Out of memory!");
2231 ERR(state->handle, "Unknown ocontext");
2235 ERR(state->handle, "Out of memory!");
2254 ERR(state->handle, "Unknown target");
2269 ERR(state->handle, "Out of memory!");
2276 ERR(state->handle, "Out of memory!");
2289 ERR(state->handle, "Out of memory!");
2295 ERR(state->handle, "Out of memory!");
2325 ERR(state->handle, "Out of memory!");
2333 ERR(state->handle, "Out of memory!");
2371 int expand_rule(sepol_handle_t * handle,
2389 retval = expand_rule_helper(handle, source_pol, NULL,
2690 ERR(state->handle, "Out of Memory!");
2695 ERR(state->handle, "Out of Memory!");
2729 ERR(state->handle,
2736 (state->handle, state->out, state->typemap,
2755 if (state->handle && state->handle->expand_consume_base) {
2775 int expand_module_avrules(sepol_handle_t * handle, policydb_t * base,
2791 state.handle = handle;
2903 int expand_module(sepol_handle_t * handle,
2919 discard_tunables(handle, base);
2927 state.handle = handle;
2930 ERR(handle, "Target of expand was not a base policy.");
2946 ERR(handle, "Out of memory!");
2953 ERR(handle, "Out of memory!");
2959 ERR(handle, "Out of memory!");
2965 ERR(handle, "Out of memory!");
2971 ERR(handle, "Out of memory!");
3011 if (policydb_index_others(handle, out, verbose)) {
3012 ERR(handle, "Error while indexing out symbols");
3033 if (policydb_index_others(handle, out, verbose)) {
3034 ERR(handle, "Error while indexing out symbols");
3050 ERR(handle, "Error while indexing out classes");
3053 if (policydb_index_others(handle, out, verbose)) {
3054 ERR(handle, "Error while indexing out symbols");
3092 ERR(handle, "Error during expand");
3120 ERR(handle, "Out of memory!");
3128 ERR(handle, "Out of memory!");
3135 if (hierarchy_check_constraints(handle, state.out))
3139 (handle, state.out,