Lines Matching refs:scope

166 	int scope;
325 // array of lists, where each list contains all the aliases defined in the scope at index i
334 struct scope_datum *scope;
339 scope = hashtab_search(pdb->scope[SYM_TYPES].table, key);
340 if (scope == NULL) {
344 len = scope->decl_ids_len;
346 scope_id = scope->decl_ids[len-1];
498 struct scope_datum *scope;
500 scope = hashtab_search(pdb->scope[symbol_type].table, id);
501 if (scope == NULL) {
508 for (j = 0; j < scope->decl_ids_len; j++) {
509 if (scope->decl_ids[j] == decl->decl_id) {
1975 static int class_to_cil(int indent, struct policydb *pdb, struct avrule_block *UNUSED(block), struct stack *UNUSED(decl_stack), char *key, void *datum, int scope)
1983 if (scope == SCOPE_REQ) {
2106 static int role_to_cil(int indent, struct policydb *pdb, struct avrule_block *UNUSED(block), struct stack *decl_stack, char *key, void *datum, int scope)
2123 if (scope == SCOPE_REQ) {
2124 // if a role/roleattr is in the REQ scope, then it could cause an
2127 // for symbols in the REQ scope, add them to a roleattribute as a way
2134 if (scope == SCOPE_DECL) {
2192 if (scope == SCOPE_DECL) {
2238 static int type_to_cil(int indent, struct policydb *pdb, struct avrule_block *UNUSED(block), struct stack *decl_stack, char *key, void *datum, int scope)
2243 if (scope == SCOPE_REQ) {
2244 // if a type/typeattr is in the REQ scope, then it could cause an
2247 // for symbols in the REQ scope, add them to a typeattribute as a way
2259 if (scope == SCOPE_DECL) {
2275 if (scope == SCOPE_DECL) {
2311 static int user_to_cil(int indent, struct policydb *pdb, struct avrule_block *block, struct stack *UNUSED(decl_stack), char *key, void *datum, int scope)
2321 if (scope == SCOPE_DECL) {
2362 static int boolean_to_cil(int indent, struct policydb *UNUSED(pdb), struct avrule_block *UNUSED(block), struct stack *UNUSED(decl_stack), char *key, void *datum, int scope)
2367 if (scope == SCOPE_DECL) {
2380 static int sens_to_cil(int indent, struct policydb *pdb, struct avrule_block *UNUSED(block), struct stack *UNUSED(decl_stack), char *key, void *datum, int scope)
2384 if (scope == SCOPE_DECL) {
2424 static int cat_to_cil(int indent, struct policydb *pdb, struct avrule_block *UNUSED(block), struct stack *UNUSED(decl_stack), char *key, void *datum, int scope)
2428 if (scope == SCOPE_REQ) {
3376 static int (*func_to_cil[SYM_NUM])(int indent, struct policydb *pdb, struct avrule_block *block, struct stack *decl_stack, char *key, void *datum, int scope) = {
3435 struct scope_datum *scope;
3445 map = decl->declared.scope[sym];
3453 scope = hashtab_search(pdb->scope[sym].table, key);
3454 if (scope == NULL) {
3458 rc = func_to_cil[sym](indent, pdb, block, decl_stack, key, datum, scope->scope);
3509 map = decl->required.scope[sym];
3513 scope_datum = hashtab_search(pdb->scope[sym].table, key);
3524 // Symbols required in the global scope are also in the
3525 // required scope ebitmap of all avrule decls (i.e. required
3529 // global scope. If we got here, then this symbol is not
3530 // actually required in this scope, so skip it.
3608 sup_map = sup->scope[i];
3609 sub_map = sub->scope[i];