/third_party/selinux/libsepol/tests/ |
D | test-linker-types.c | 138 test_sym_presence(base, "g_b_type_1", SYM_TYPES, SCOPE_DECL, decls, 1); in base_type_tests() 141 test_sym_presence(base, "g_b_attr_1", SYM_TYPES, SCOPE_DECL, decls, 1); in base_type_tests() 147 test_sym_presence(base, "o1_b_type_1", SYM_TYPES, SCOPE_DECL, decls, 1); in base_type_tests() 150 test_sym_presence(base, "o1_b_attr_1", SYM_TYPES, SCOPE_DECL, decls, 1); in base_type_tests() 156 test_sym_presence(base, "g_b_alias_1", SYM_TYPES, SCOPE_DECL, decls, 1); in base_type_tests() 159 test_sym_presence(base, "g_b_alias_2", SYM_TYPES, SCOPE_DECL, decls, 1); in base_type_tests() 182 test_sym_presence(base, "g_m1_type_1", SYM_TYPES, SCOPE_DECL, decls, 1); in module_type_tests() 185 test_sym_presence(base, "g_m1_attr_1", SYM_TYPES, SCOPE_DECL, decls, 1); in module_type_tests() 192 test_sym_presence(base, "o1_m1_type_1", SYM_TYPES, SCOPE_DECL, decls, 1); in module_type_tests() 195 test_sym_presence(base, "o1_m1_attr_1", SYM_TYPES, SCOPE_DECL, decls, 1); in module_type_tests() [all …]
|
D | test-linker-roles.c | 81 test_sym_presence(base, "g_b_role_1", SYM_ROLES, SCOPE_DECL, decls, 1); in base_role_tests() 91 test_sym_presence(base, "o1_b_role_1", SYM_ROLES, SCOPE_DECL, decls, 1); in base_role_tests() 112 test_sym_presence(base, "g_m1_role_1", SYM_ROLES, SCOPE_DECL, decls, 1); in module_role_tests() 122 test_sym_presence(base, "o1_m1_role_1", SYM_ROLES, SCOPE_DECL, decls, 1); in module_role_tests() 134 test_sym_presence(base, "g_b_role_2", SYM_ROLES, SCOPE_DECL, decls, 1); in module_role_tests() 146 test_sym_presence(base, "g_b_role_3", SYM_ROLES, SCOPE_DECL, decls, 3); in module_role_tests() 158 test_sym_presence(base, "o1_b_role_2", SYM_ROLES, SCOPE_DECL, decls, 2); in module_role_tests() 170 test_sym_presence(base, "g_b_role_4", SYM_ROLES, SCOPE_DECL, decls, 2); in module_role_tests() 182 test_sym_presence(base, "o3_b_role_1", SYM_ROLES, SCOPE_DECL, decls, 2); in module_role_tests() 195 test_sym_presence(base, "o4_b_role_1", SYM_ROLES, SCOPE_DECL, decls, 3); in module_role_tests()
|
D | test-linker-cond-map.c | 100 test_sym_presence(base, "g_b_bool_1", SYM_BOOLS, SCOPE_DECL, decls, 1); in base_cond_tests() 110 test_sym_presence(base, "o1_b_bool_1", SYM_BOOLS, SCOPE_DECL, decls, 1); in base_cond_tests() 128 test_sym_presence(base, "g_m1_bool_1", SYM_BOOLS, SCOPE_DECL, decls, 1); in module_cond_tests() 138 test_sym_presence(base, "o1_m1_bool_1", SYM_BOOLS, SCOPE_DECL, decls, 1); in module_cond_tests() 148 test_sym_presence(base, "g_m2_bool_1", SYM_BOOLS, SCOPE_DECL, decls, 1); in module_cond_tests() 149 test_sym_presence(base, "g_m2_bool_2", SYM_BOOLS, SCOPE_DECL, decls, 1); in module_cond_tests()
|
D | helpers.c | 73 if (scope->scope != SCOPE_DECL) { in test_find_decl_by_sym()
|
/third_party/selinux/checkpolicy/ |
D | module_compiler.c | 202 int ret = create_symbol(symbol_type, key, datum, dest_value, SCOPE_DECL); in declare_symbol() 279 if (scope == SCOPE_DECL) { in create_role() 324 ret = create_role(SCOPE_DECL, isattr, &role, &key); in declare_role() 419 if (scope == SCOPE_DECL) { in create_type() 452 int ret = create_type(SCOPE_DECL, isattr, &type); in declare_type() 522 if (scope == SCOPE_DECL) { in create_user() 558 ret = create_user(SCOPE_DECL, &user, &key); in declare_user()
|
/third_party/selinux/libsepol/src/ |
D | avrule_block.c | 165 if (scope->scope != SCOPE_DECL) { in is_id_enabled()
|
D | link.c | 271 if (scope->scope == SCOPE_DECL) { in class_copy_callback() 654 if (scope->scope == SCOPE_DECL) { in bool_copy_callback() 685 if (scope->scope == SCOPE_DECL) { in sens_copy_callback() 726 if (scope->scope == SCOPE_DECL) { in cat_copy_callback() 1808 if (base_scope->scope == SCOPE_REQ && scope->scope == SCOPE_DECL) { in scope_copy_callback() 1811 base_scope->scope = SCOPE_DECL; in scope_copy_callback() 1822 } else if (base_scope->scope == SCOPE_DECL && scope->scope == SCOPE_REQ) { in scope_copy_callback()
|
D | module_to_cil.c | 2134 if (scope == SCOPE_DECL) { in role_to_cil() 2192 if (scope == SCOPE_DECL) { in role_to_cil() 2259 if (scope == SCOPE_DECL) { in type_to_cil() 2275 if (scope == SCOPE_DECL) { in type_to_cil() 2321 if (scope == SCOPE_DECL) { in user_to_cil() 2367 if (scope == SCOPE_DECL) { in boolean_to_cil() 2384 if (scope == SCOPE_DECL) { in sens_to_cil()
|
D | policydb.c | 786 POLICY_MOD ? SCOPE_REQ : SCOPE_DECL), 1, in roles_init() 1706 } else if (scope_datum->scope == SCOPE_DECL && scope == SCOPE_DECL) { in symtab_insert() 1730 } else if (scope_datum->scope == SCOPE_REQ && scope == SCOPE_DECL) { in symtab_insert() 1731 scope_datum->scope = SCOPE_DECL; in symtab_insert() 1748 if (scope_datum->scope == SCOPE_DECL && scope == SCOPE_REQ) { in symtab_insert()
|
D | policydb_validate.c | 187 case SCOPE_DECL: in validate_scope()
|
/third_party/selinux/libsepol/cil/src/ |
D | cil_binary.c | 250 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/ |
D | policydb.h | 495 #define SCOPE_DECL 2 macro
|