Home
last modified time | relevance | path

Searched refs:SCOPE_DECL (Results 1 – 11 of 11) sorted by relevance

/external/selinux/libsepol/tests/
Dtest-linker-types.c137 test_sym_presence(base, "g_b_type_1", SYM_TYPES, SCOPE_DECL, decls, 1); in base_type_tests()
140 test_sym_presence(base, "g_b_attr_1", SYM_TYPES, SCOPE_DECL, decls, 1); in base_type_tests()
146 test_sym_presence(base, "o1_b_type_1", SYM_TYPES, SCOPE_DECL, decls, 1); in base_type_tests()
149 test_sym_presence(base, "o1_b_attr_1", SYM_TYPES, SCOPE_DECL, decls, 1); in base_type_tests()
155 test_sym_presence(base, "g_b_alias_1", SYM_TYPES, SCOPE_DECL, decls, 1); in base_type_tests()
158 test_sym_presence(base, "g_b_alias_2", SYM_TYPES, SCOPE_DECL, decls, 1); in base_type_tests()
181 test_sym_presence(base, "g_m1_type_1", SYM_TYPES, SCOPE_DECL, decls, 1); in module_type_tests()
184 test_sym_presence(base, "g_m1_attr_1", SYM_TYPES, SCOPE_DECL, decls, 1); in module_type_tests()
191 test_sym_presence(base, "o1_m1_type_1", SYM_TYPES, SCOPE_DECL, decls, 1); in module_type_tests()
194 test_sym_presence(base, "o1_m1_attr_1", SYM_TYPES, SCOPE_DECL, decls, 1); in module_type_tests()
[all …]
Dtest-linker-roles.c82 test_sym_presence(base, "g_b_role_1", SYM_ROLES, SCOPE_DECL, decls, 1); in base_role_tests()
92 test_sym_presence(base, "o1_b_role_1", SYM_ROLES, SCOPE_DECL, decls, 1); in base_role_tests()
113 test_sym_presence(base, "g_m1_role_1", SYM_ROLES, SCOPE_DECL, decls, 1); in module_role_tests()
123 test_sym_presence(base, "o1_m1_role_1", SYM_ROLES, SCOPE_DECL, decls, 1); in module_role_tests()
135 test_sym_presence(base, "g_b_role_2", SYM_ROLES, SCOPE_DECL, decls, 1); in module_role_tests()
147 test_sym_presence(base, "g_b_role_3", SYM_ROLES, SCOPE_DECL, decls, 3); in module_role_tests()
159 test_sym_presence(base, "o1_b_role_2", SYM_ROLES, SCOPE_DECL, decls, 2); in module_role_tests()
171 test_sym_presence(base, "g_b_role_4", SYM_ROLES, SCOPE_DECL, decls, 2); in module_role_tests()
183 test_sym_presence(base, "o3_b_role_1", SYM_ROLES, SCOPE_DECL, decls, 2); in module_role_tests()
196 test_sym_presence(base, "o4_b_role_1", SYM_ROLES, SCOPE_DECL, decls, 3); in module_role_tests()
Dtest-linker-cond-map.c99 test_sym_presence(base, "g_b_bool_1", SYM_BOOLS, SCOPE_DECL, decls, 1); in base_cond_tests()
109 test_sym_presence(base, "o1_b_bool_1", SYM_BOOLS, SCOPE_DECL, decls, 1); in base_cond_tests()
127 test_sym_presence(base, "g_m1_bool_1", SYM_BOOLS, SCOPE_DECL, decls, 1); in module_cond_tests()
137 test_sym_presence(base, "o1_m1_bool_1", SYM_BOOLS, SCOPE_DECL, decls, 1); in module_cond_tests()
147 test_sym_presence(base, "g_m2_bool_1", SYM_BOOLS, SCOPE_DECL, decls, 1); in module_cond_tests()
148 test_sym_presence(base, "g_m2_bool_2", SYM_BOOLS, SCOPE_DECL, decls, 1); in module_cond_tests()
Dhelpers.c73 if (scope->scope != SCOPE_DECL) { in test_find_decl_by_sym()
/external/selinux/checkpolicy/
Dmodule_compiler.c201 int ret = create_symbol(symbol_type, key, datum, dest_value, SCOPE_DECL); in declare_symbol()
278 if (scope == SCOPE_DECL) { in create_role()
323 ret = create_role(SCOPE_DECL, isattr, &role, &key); in declare_role()
418 if (scope == SCOPE_DECL) { in create_type()
451 int ret = create_type(SCOPE_DECL, isattr, &type); in declare_type()
521 if (scope == SCOPE_DECL) { in create_user()
557 ret = create_user(SCOPE_DECL, &user, &key); in declare_user()
/external/selinux/libsepol/src/
Davrule_block.c165 if (scope->scope != SCOPE_DECL) { in is_id_enabled()
Dlink.c269 if (scope->scope == SCOPE_DECL) { in class_copy_callback()
652 if (scope->scope == SCOPE_DECL) { in bool_copy_callback()
683 if (scope->scope == SCOPE_DECL) { in sens_copy_callback()
724 if (scope->scope == SCOPE_DECL) { in cat_copy_callback()
1874 if (base_scope->scope == SCOPE_REQ && scope->scope == SCOPE_DECL) { in scope_copy_callback()
1877 base_scope->scope = SCOPE_DECL; in scope_copy_callback()
1888 } else if (base_scope->scope == SCOPE_DECL && scope->scope == SCOPE_REQ) { in scope_copy_callback()
Dmodule_to_cil.c2137 if (scope == SCOPE_DECL) { in role_to_cil()
2195 if (scope == SCOPE_DECL) { in role_to_cil()
2265 if (scope == SCOPE_DECL) { in type_to_cil()
2281 if (scope == SCOPE_DECL) { in type_to_cil()
2327 if (scope == SCOPE_DECL) { in user_to_cil()
2376 if (scope == SCOPE_DECL) { in boolean_to_cil()
2393 if (scope == SCOPE_DECL) { in sens_to_cil()
Dpolicydb.c745 POLICY_MOD ? SCOPE_REQ : SCOPE_DECL), 1, in roles_init()
1676 } else if (scope_datum->scope == SCOPE_DECL && scope == SCOPE_DECL) { in symtab_insert()
1700 } else if (scope_datum->scope == SCOPE_REQ && scope == SCOPE_DECL) { in symtab_insert()
1701 scope_datum->scope = SCOPE_DECL; in symtab_insert()
1718 if (scope_datum->scope == SCOPE_DECL && scope == SCOPE_REQ) { in symtab_insert()
/external/selinux/libsepol/cil/src/
Dcil_binary.c259 rc = symtab_insert(pdb, SYM_COMMONS, key, sepol_common, SCOPE_DECL, 0, &value); in cil_common_to_policydb()
312 rc = symtab_insert(pdb, SYM_CLASSES, key, sepol_class, SCOPE_DECL, 0, &value); in cil_classorder_to_policydb()
389 rc = symtab_insert(pdb, SYM_ROLES, (hashtab_key_t)key, sepol_role, SCOPE_DECL, 0, &value); in cil_role_to_policydb()
475 rc = symtab_insert(pdb, SYM_TYPES, key, sepol_type, SCOPE_DECL, 0, &value); in cil_type_to_policydb()
530 rc = symtab_insert(pdb, SYM_TYPES, key, sepol_alias, SCOPE_DECL, 0, NULL); in cil_typealias_to_policydb()
584 rc = symtab_insert(pdb, SYM_TYPES, key, sepol_attr, SCOPE_DECL, 0, &value); in cil_typeattribute_to_policydb()
699 rc = symtab_insert(pdb, SYM_USERS, key, sepol_user, SCOPE_DECL, 0, &value); in cil_user_to_policydb()
790 rc = symtab_insert(pdb, SYM_BOOLS, key, sepol_bool, SCOPE_DECL, 0, &value); in cil_bool_to_policydb()
820 rc = symtab_insert(pdb, SYM_CATS, key, sepol_cat, SCOPE_DECL, 0, &value); in cil_catorder_to_policydb()
848 rc = symtab_insert(pdb, SYM_CATS, key, sepol_alias, SCOPE_DECL, 0, NULL); in cil_catalias_to_policydb()
[all …]
/external/selinux/libsepol/include/sepol/policydb/
Dpolicydb.h492 #define SCOPE_DECL 2 macro