Home | History | Annotate | Download | only in src

Lines Matching refs:scope

626  * the policy is a module, set object_r's scope to be SCOPE_REQ,
688 if (symtab_init(&p->scope[i], symtab_sizes[i])) {
715 hashtab_destroy(p->scope[i].table);
1264 hashtab_map(p->scope[i].table, scope_destroy, 0);
1265 hashtab_destroy(p->scope[i].table);
1409 * inserting the appropriate scope information in addition to
1417 * scope scope of this symbol, either SCOPE_REQ or SCOPE_DECL
1426 * -2 scope conflicted
1432 uint32_t scope, uint32_t avrule_decl_id, uint32_t * value)
1456 /* get existing scope information; if there is not one then
1459 (scope_datum_t *) hashtab_search(pol->scope[sym].table, key);
1468 scope_datum->scope = scope;
1472 hashtab_insert(pol->scope[sym].table, key2,
1478 } else if (scope_datum->scope == SCOPE_DECL && scope == SCOPE_DECL) {
1502 } else if (scope_datum->scope == SCOPE_REQ && scope == SCOPE_DECL) {
1503 scope_datum->scope = SCOPE_DECL;
1504 } else if (scope_datum->scope != scope) {
1512 /* already there, so don't modify its scope */
3323 if (ebitmap_read(scope_index->scope + i, fp) == -1) {
3472 scope_datum_t *scope = NULL;
3477 hashtab_t h = p->scope[symnum].table;
3497 if ((scope = calloc(1, sizeof(*scope))) == NULL) {
3503 scope->scope = le32_to_cpu(buf[0]);
3504 scope->decl_ids_len = le32_to_cpu(buf[1]);
3505 assert(scope->decl_ids_len > 0);
3506 if ((scope->decl_ids =
3507 malloc(scope->decl_ids_len * sizeof(uint32_t))) == NULL) {
3510 rc = next_entry(scope->decl_ids, fp, sizeof(uint32_t) * scope->decl_ids_len);
3513 for (i = 0; i < scope->decl_ids_len; i++) {
3514 scope->decl_ids[i] = le32_to_cpu(scope->decl_ids[i]);
3519 scope_destroy(key, scope, NULL);
3521 if (hashtab_insert(h, key, scope)) {
3529 scope_destroy(key, scope, NULL);
3766 /* first read the AV rule blocks, then the scope tables */