Lines Matching refs:scope
670 * the policy is a module, set object_r's scope to be SCOPE_REQ,
732 if (symtab_init(&p->scope[i], symtab_sizes[i])) {
759 hashtab_destroy(p->scope[i].table);
1308 (void)hashtab_map(p->scope[i].table, scope_destroy, 0);
1309 hashtab_destroy(p->scope[i].table);
1453 * inserting the appropriate scope information in addition to
1461 * scope scope of this symbol, either SCOPE_REQ or SCOPE_DECL
1470 * -2 scope conflicted
1476 uint32_t scope, uint32_t avrule_decl_id, uint32_t * value)
1500 /* get existing scope information; if there is not one then
1503 (scope_datum_t *) hashtab_search(pol->scope[sym].table, key);
1512 scope_datum->scope = scope;
1516 hashtab_insert(pol->scope[sym].table, key2,
1522 } else if (scope_datum->scope == SCOPE_DECL && scope == SCOPE_DECL) {
1546 } else if (scope_datum->scope == SCOPE_REQ && scope == SCOPE_DECL) {
1547 scope_datum->scope = SCOPE_DECL;
1548 } else if (scope_datum->scope != scope) {
1556 /* already there, so don't modify its scope */
3381 if (ebitmap_read(scope_index->scope + i, fp) == -1) {
3534 scope_datum_t *scope = NULL;
3539 hashtab_t h = p->scope[symnum].table;
3559 if ((scope = calloc(1, sizeof(*scope))) == NULL) {
3565 scope->scope = le32_to_cpu(buf[0]);
3566 scope->decl_ids_len = le32_to_cpu(buf[1]);
3567 assert(scope->decl_ids_len > 0);
3568 if ((scope->decl_ids =
3569 malloc(scope->decl_ids_len * sizeof(uint32_t))) == NULL) {
3572 rc = next_entry(scope->decl_ids, fp, sizeof(uint32_t) * scope->decl_ids_len);
3575 for (i = 0; i < scope->decl_ids_len; i++) {
3576 scope->decl_ids[i] = le32_to_cpu(scope->decl_ids[i]);
3581 scope_destroy(key, scope, NULL);
3583 if (hashtab_insert(h, key, scope)) {
3591 scope_destroy(key, scope, NULL);
3828 /* first read the AV rule blocks, then the scope tables */