Lines Matching defs:scope

765  * the policy is a module, set object_r's scope to be SCOPE_REQ,
890 if (symtab_init(&p->scope[i], symtab_sizes[i])) {
933 hashtab_destroy(p->scope[i].table);
1520 (void)hashtab_map(p->scope[i].table, scope_destroy, 0);
1521 hashtab_destroy(p->scope[i].table);
1637 * inserting the appropriate scope information in addition to
1645 * scope scope of this symbol, either SCOPE_REQ or SCOPE_DECL
1654 * -2 scope conflicted
1660 uint32_t scope, uint32_t avrule_decl_id, uint32_t * value)
1684 /* get existing scope information; if there is not one then
1687 (scope_datum_t *) hashtab_search(pol->scope[sym].table, key);
1696 scope_datum->scope = scope;
1700 hashtab_insert(pol->scope[sym].table, key2,
1706 } else if (scope_datum->scope == SCOPE_DECL && scope == SCOPE_DECL) {
1730 } else if (scope_datum->scope == SCOPE_REQ && scope == SCOPE_DECL) {
1731 scope_datum->scope = SCOPE_DECL;
1737 /* already there, so don't modify its scope */
1748 if (scope_datum->scope == SCOPE_DECL && scope == SCOPE_REQ) {
3953 if (ebitmap_read(scope_index->scope + i, fp) < 0) {
4110 scope_datum_t *scope = NULL;
4115 hashtab_t h = p->scope[symnum].table;
4137 if ((scope = calloc(1, sizeof(*scope))) == NULL) {
4143 scope->scope = le32_to_cpu(buf[0]);
4144 scope->decl_ids_len = le32_to_cpu(buf[1]);
4145 if (zero_or_saturated(scope->decl_ids_len)) {
4146 ERR(fp->handle, "invalid scope with no declaration");
4149 if ((scope->decl_ids =
4150 calloc(scope->decl_ids_len, sizeof(uint32_t))) == NULL) {
4153 rc = next_entry(scope->decl_ids, fp, sizeof(uint32_t) * scope->decl_ids_len);
4156 for (i = 0; i < scope->decl_ids_len; i++) {
4157 scope->decl_ids[i] = le32_to_cpu(scope->decl_ids[i]);
4162 scope_destroy(key, scope, NULL);
4164 if (hashtab_insert(h, key, scope)) {
4172 scope_destroy(key, scope, NULL);
4476 /* first read the AV rule blocks, then the scope tables */