Home
last modified time | relevance | path

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

/third_party/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.c80 test_sym_presence(base, "g_b_role_1", SYM_ROLES, SCOPE_DECL, decls, 1); in base_role_tests()
90 test_sym_presence(base, "o1_b_role_1", SYM_ROLES, SCOPE_DECL, decls, 1); in base_role_tests()
111 test_sym_presence(base, "g_m1_role_1", SYM_ROLES, SCOPE_DECL, decls, 1); in module_role_tests()
121 test_sym_presence(base, "o1_m1_role_1", SYM_ROLES, SCOPE_DECL, decls, 1); in module_role_tests()
133 test_sym_presence(base, "g_b_role_2", SYM_ROLES, SCOPE_DECL, decls, 1); in module_role_tests()
145 test_sym_presence(base, "g_b_role_3", SYM_ROLES, SCOPE_DECL, decls, 3); in module_role_tests()
157 test_sym_presence(base, "o1_b_role_2", SYM_ROLES, SCOPE_DECL, decls, 2); in module_role_tests()
169 test_sym_presence(base, "g_b_role_4", SYM_ROLES, SCOPE_DECL, decls, 2); in module_role_tests()
181 test_sym_presence(base, "o3_b_role_1", SYM_ROLES, SCOPE_DECL, decls, 2); in module_role_tests()
194 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()
/third_party/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()
/third_party/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()
1855 if (base_scope->scope == SCOPE_REQ && scope->scope == SCOPE_DECL) { in scope_copy_callback()
1858 base_scope->scope = SCOPE_DECL; in scope_copy_callback()
1869 } else if (base_scope->scope == SCOPE_DECL && scope->scope == SCOPE_REQ) { in scope_copy_callback()
Dmodule_to_cil.c2127 if (scope == SCOPE_DECL) { in role_to_cil()
2185 if (scope == SCOPE_DECL) { in role_to_cil()
2252 if (scope == SCOPE_DECL) { in type_to_cil()
2268 if (scope == SCOPE_DECL) { in type_to_cil()
2314 if (scope == SCOPE_DECL) { in user_to_cil()
2360 if (scope == SCOPE_DECL) { in boolean_to_cil()
2377 if (scope == SCOPE_DECL) { in sens_to_cil()
Dpolicydb.c774 POLICY_MOD ? SCOPE_REQ : SCOPE_DECL), 1, in roles_init()
1693 } else if (scope_datum->scope == SCOPE_DECL && scope == SCOPE_DECL) { in symtab_insert()
1717 } else if (scope_datum->scope == SCOPE_REQ && scope == SCOPE_DECL) { in symtab_insert()
1718 scope_datum->scope = SCOPE_DECL; in symtab_insert()
1735 if (scope_datum->scope == SCOPE_DECL && scope == SCOPE_REQ) { in symtab_insert()
/third_party/selinux/libsepol/cil/src/
Dcil_binary.c250 rc = symtab_insert(pdb, SYM_COMMONS, key, sepol_common, SCOPE_DECL, 0, &value); in cil_common_to_policydb()
303 rc = symtab_insert(pdb, SYM_CLASSES, key, sepol_class, SCOPE_DECL, 0, &value); in cil_classorder_to_policydb()
380 rc = symtab_insert(pdb, SYM_ROLES, (hashtab_key_t)key, sepol_role, SCOPE_DECL, 0, &value); in cil_role_to_policydb()
464 rc = symtab_insert(pdb, SYM_TYPES, key, sepol_type, SCOPE_DECL, 0, &value); in cil_type_to_policydb()
519 rc = symtab_insert(pdb, SYM_TYPES, key, sepol_alias, SCOPE_DECL, 0, NULL); in cil_typealias_to_policydb()
573 rc = symtab_insert(pdb, SYM_TYPES, key, sepol_attr, SCOPE_DECL, 0, &value); in cil_typeattribute_to_policydb()
686 rc = symtab_insert(pdb, SYM_USERS, key, sepol_user, SCOPE_DECL, 0, &value); in cil_user_to_policydb()
773 rc = symtab_insert(pdb, SYM_BOOLS, key, sepol_bool, SCOPE_DECL, 0, &value); in cil_bool_to_policydb()
803 rc = symtab_insert(pdb, SYM_CATS, key, sepol_cat, SCOPE_DECL, 0, &value); in cil_catorder_to_policydb()
831 rc = symtab_insert(pdb, SYM_CATS, key, sepol_alias, SCOPE_DECL, 0, NULL); in cil_catalias_to_policydb()
[all …]
/third_party/selinux/libsepol/include/sepol/policydb/
Dpolicydb.h494 #define SCOPE_DECL 2 macro