Lines Matching defs:base
239 /* Append each of the file contexts from each module to the base
242 * variable). 'base_fc_len' is the length of base's file context; it
245 static int link_file_contexts(sepol_module_package_t * base,
253 fc_len = base->file_contexts_len;
258 if ((s = (char *)realloc(base->file_contexts, fc_len)) == NULL) {
261 base->file_contexts = s;
263 memcpy(base->file_contexts + base->file_contexts_len,
266 base->file_contexts_len += modules[i]->file_contexts_len;
271 /* Append each of the netfilter contexts from each module to the base
274 * variable). 'base_nc_len' is the length of base's netfilter contexts; it
277 static int link_netfilter_contexts(sepol_module_package_t * base,
285 base_nc_len = base->netfilter_contexts_len;
291 (char *)realloc(base->netfilter_contexts, base_nc_len)) == NULL) {
294 base->netfilter_contexts = base_context;
297 memcpy(base->netfilter_contexts + base->netfilter_contexts_len,
300 base->netfilter_contexts_len +=
308 /* Links the module packages into the base. Returns 0 on success, -1
311 sepol_module_package_t * base,
326 retval = link_modules(handle, &base->policy->p, mod_pols, num_modules,
335 if (link_file_contexts(base, modules, num_modules) == -1) {
340 if (link_netfilter_contexts(base, modules, num_modules) == -1) {
778 /* if base - we're done */
890 /* seusers and user_extra only supported in base at the moment */
894 "seuser and user_extra sections only supported in base");
988 sepol_policydb_t * base,
991 return link_modules(handle, &base->p, (policydb_t **) modules, len,
996 sepol_policydb_t * base,
999 return expand_module(handle, &base->p, &out->p, verbose, check);