Lines Matching refs:scope
605 * the policy is a module, set object_r's scope to be SCOPE_REQ,
667 if (symtab_init(&p->scope[i], symtab_sizes[i])) {
694 hashtab_destroy(p->scope[i].table);
1243 hashtab_map(p->scope[i].table, scope_destroy, 0);
1244 hashtab_destroy(p->scope[i].table);
1388 * inserting the appropriate scope information in addition to
1396 * scope scope of this symbol, either SCOPE_REQ or SCOPE_DECL
1405 * -2 scope conflicted
1411 uint32_t scope, uint32_t avrule_decl_id, uint32_t * value)
1435 /* get existing scope information; if there is not one then
1438 (scope_datum_t *) hashtab_search(pol->scope
1447 scope_datum->scope = scope;
1451 hashtab_insert(pol->scope[sym].table, key2,
1457 } else if (scope_datum->scope == SCOPE_DECL && scope == SCOPE_DECL) {
1481 } else if (scope_datum->scope == SCOPE_REQ && scope == SCOPE_DECL) {
1482 scope_datum->scope = SCOPE_DECL;
1483 } else if (scope_datum->scope != scope) {
1491 /* already there, so don't modify its scope */
3290 if (ebitmap_read(scope_index->scope + i, fp) == -1) {
3439 scope_datum_t *scope = NULL;
3444 hashtab_t h = p->scope[symnum].table;
3464 if ((scope = calloc(1, sizeof(*scope))) == NULL) {
3470 scope->scope = le32_to_cpu(buf[0]);
3471 scope->decl_ids_len = le32_to_cpu(buf[1]);
3472 assert(scope->decl_ids_len > 0);
3473 if ((scope->decl_ids =
3474 malloc(scope->decl_ids_len * sizeof(uint32_t))) == NULL) {
3477 rc = next_entry(scope->decl_ids, fp, sizeof(uint32_t) * scope->decl_ids_len);
3480 for (i = 0; i < scope->decl_ids_len; i++) {
3481 scope->decl_ids[i] = le32_to_cpu(scope->decl_ids[i]);
3486 scope_destroy(key, scope, NULL);
3488 if (hashtab_insert(h, key, scope)) {
3496 scope_destroy(key, scope, NULL);
3733 /* first read the AV rule blocks, then the scope tables */