Lines Matching refs:scope
249 scope_datum_t *scope = NULL;
262 scope =
265 if (scope == NULL) {
269 if (scope->scope == SCOPE_DECL) {
605 scope_datum_t *scope;
646 /* Get the scope info for this boolean to see if this is the declaration,
648 scope = hashtab_search(state->cur->policy->p_bools_scope.table, id);
649 if (!scope)
651 if (scope->scope == SCOPE_DECL) {
672 scope_datum_t *scope;
678 scope =
680 if (!scope)
682 if (scope->scope == SCOPE_DECL) {
688 } else if (scope->scope == SCOPE_REQ) {
696 "%s: has an unknown scope: %d\n",
697 state->cur_mod_name, scope->scope);
714 scope_datum_t *scope;
720 scope = hashtab_search(state->cur->policy->p_cat_scope.table, id);
721 if (!scope)
723 if (scope->scope == SCOPE_DECL) {
729 } else if (scope->scope == SCOPE_REQ) {
736 /* unknown scope? malformed policy? */
738 "%s: has an unknown scope: %d\n",
739 state->cur_mod_name, scope->scope);
1666 ebitmap_t *srcmap = src->scope + i;
1667 ebitmap_t *destmap = dest->scope + i;
1753 /* then copy required and declared scope indices here */
1833 scope_datum_t *scope, *base_scope;
1838 scope = (scope_datum_t *) datum;
1840 /* check if the base already has a scope entry */
1841 base_scope = hashtab_search(state->base->scope[symbol_num].table, id);
1853 ret = hashtab_insert(state->base->scope[symbol_num].table,
1861 new_scope->scope = SCOPE_REQ; /* this is reset further down */
1864 if (base_scope->scope == SCOPE_REQ && scope->scope == SCOPE_DECL) {
1867 base_scope->scope = SCOPE_DECL;
1871 for (i = 0; i < scope->decl_ids_len; i++) {
1872 if (add_i_to_a(avdecl_map[scope->decl_ids[i]],
1878 } else if (base_scope->scope == SCOPE_DECL && scope->scope == SCOPE_REQ) {
1881 } else if (base_scope->scope == SCOPE_REQ && scope->scope == SCOPE_REQ) {
1883 for (i = 0; i < scope->decl_ids_len; i++) {
1884 if (add_i_to_a(avdecl_map[scope->decl_ids[i]],
1901 for (i = 0; i < scope->decl_ids_len; i++) {
1902 if (add_i_to_a(avdecl_map[scope->decl_ids[i]],
1944 (module->policy->scope[i].table, scope_copy_callback,
2004 bitmap = &decl->required.scope[i];
2010 /* check base's scope table */
2031 scope_datum_t *scope;
2039 scope =
2042 if (scope == NULL) {
2044 "Could not find scope information for class %s",